projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SPARC NCG: fill branch delay slot after tabled jump (doh!)
[ghc-hetmet.git]
/
compiler
/
nativeGen
/
RegSpillCost.hs
diff --git
a/compiler/nativeGen/RegSpillCost.hs
b/compiler/nativeGen/RegSpillCost.hs
index
d987937
..
6a2066a
100644
(file)
--- a/
compiler/nativeGen/RegSpillCost.hs
+++ b/
compiler/nativeGen/RegSpillCost.hs
@@
-21,6
+21,7
@@
import RegLiveness
import RegAllocInfo
import MachInstrs
import MachRegs
import RegAllocInfo
import MachInstrs
import MachRegs
+import BlockId
import Cmm
import UniqFM
import Cmm
import UniqFM
@@
-78,7
+79,7
@@
slurpSpillCostInfo cmm
-- the info table from the CmmProc
countBlock info (BasicBlock blockId instrs)
| LiveInfo _ _ blockLive <- info
-- the info table from the CmmProc
countBlock info (BasicBlock blockId instrs)
| LiveInfo _ _ blockLive <- info
- , Just rsLiveEntry <- lookupUFM blockLive blockId
+ , Just rsLiveEntry <- lookupBlockEnv blockLive blockId
= countLIs rsLiveEntry instrs
| otherwise
= countLIs rsLiveEntry instrs
| otherwise