projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove some unused CPP macros
[ghc-hetmet.git]
/
compiler
/
nativeGen
/
X86
/
Instr.hs
diff --git
a/compiler/nativeGen/X86/Instr.hs
b/compiler/nativeGen/X86/Instr.hs
index
e934a6d
..
b9c851a
100644
(file)
--- a/
compiler/nativeGen/X86/Instr.hs
+++ b/
compiler/nativeGen/X86/Instr.hs
@@
-746,7
+746,7
@@
i386_insert_ffrees blocks
where p insn r = case insn of
CALL _ _ -> GFREE : insn : r
JMP _ -> GFREE : insn : r
where p insn r = case insn of
CALL _ _ -> GFREE : insn : r
JMP _ -> GFREE : insn : r
- JXX_GBL _ _ -> GFREE : insn : r
+ JXX_GBL _ _ -> panic "i386_insert_ffrees: cannot handle JXX_GBL"
_ -> insn : r
-- if you ever add a new FP insn to the fake x86 FP insn set,
_ -> insn : r
-- if you ever add a new FP insn to the fake x86 FP insn set,
@@
-781,6
+781,9
@@
is_G_instr instr
data JumpDest = DestBlockId BlockId | DestImm Imm
data JumpDest = DestBlockId BlockId | DestImm Imm
+getJumpDestBlockId :: JumpDest -> Maybe BlockId
+getJumpDestBlockId (DestBlockId bid) = Just bid
+getJumpDestBlockId _ = Nothing
canShortcut :: Instr -> Maybe JumpDest
canShortcut (JXX ALWAYS id) = Just (DestBlockId id)
canShortcut :: Instr -> Maybe JumpDest
canShortcut (JXX ALWAYS id) = Just (DestBlockId id)