projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote branch 'working/master'
[ghc-hetmet.git]
/
compiler
/
nativeGen
/
X86
/
Instr.hs
diff --git
a/compiler/nativeGen/X86/Instr.hs
b/compiler/nativeGen/X86/Instr.hs
index
92655d1
..
b9c851a
100644
(file)
--- a/
compiler/nativeGen/X86/Instr.hs
+++ b/
compiler/nativeGen/X86/Instr.hs
@@
-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)