[GHC] #15104: Update JMP_TBL targets during shortcutting for x86 codegen.
GHC
ghc-devs at haskell.org
Thu May 31 02:05:54 UTC 2018
#15104: Update JMP_TBL targets during shortcutting for x86 codegen.
-------------------------------------+-------------------------------------
Reporter: AndreasK | Owner: (none)
Type: bug | Status: patch
Priority: normal | Milestone: 8.6.1
Component: Compiler (NCG) | Version: 8.5
Resolution: | Keywords: CodeGen
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D4595
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari <ben@…>):
In [changeset:"5748c79e5a7a6bd1b0bfffc514d8f4f4da92e815/ghc"
5748c79e/ghc]:
{{{
#!CommitTicketReference repository="ghc"
revision="5748c79e5a7a6bd1b0bfffc514d8f4f4da92e815"
Change jump targets in JMP_TBL from blocks to X86.JumpDest.
Jump tables always point to blocks when we first generate them. However
there are rare situations where we can shortcut one of these blocks to a
static address during the asm shortcutting pass.
While we already updated the data section accordingly this patch also
extends this to the references stored in JMP_TBL.
Test Plan: ci
Reviewers: bgamari
Reviewed By: bgamari
Subscribers: thomie, carter
GHC Trac Issues: #15104
Differential Revision: https://phabricator.haskell.org/D4595
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15104#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list