X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FnativeGen%2FRegSpill.hs;h=0fdb8ce857e7c05c3443f63c352f8335b91ebd56;hb=97169c5dd31537b28f5f8ad08cd6cdf82c1ecefd;hp=873e7798e8b26c87ec8bd44eeeb21106ee111d1b;hpb=0168c633a9d209e978528f059193d19cdb5e6740;p=ghc-hetmet.git diff --git a/compiler/nativeGen/RegSpill.hs b/compiler/nativeGen/RegSpill.hs index 873e779..0fdb8ce 100644 --- a/compiler/nativeGen/RegSpill.hs +++ b/compiler/nativeGen/RegSpill.hs @@ -1,4 +1,6 @@ +{-# OPTIONS -fno-warn-missing-signatures #-} + module RegSpill ( regSpill, SpillStats(..), @@ -7,8 +9,6 @@ module RegSpill ( where -#include "HsVersions.h" - import RegLiveness import RegAllocInfo import MachRegs @@ -79,7 +79,7 @@ regSpill_instr _ li@(Instr _ Nothing) = do return [li] regSpill_instr regSlotMap - (Instr instr (Just live)) + (Instr instr (Just _)) = do -- work out which regs are read and written in this instr let RU rlRead rlWritten = regUsage instr @@ -207,7 +207,7 @@ newUnique modify $ \s -> s { stateUS = us2 } return uniq -accSpillSL (r1, s1, l1) (r2, s2, l2) +accSpillSL (r1, s1, l1) (_, s2, l2) = (r1, s1 + s2, l1 + l2)