X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FnativeGen%2FRegSpill.hs;h=0fdb8ce857e7c05c3443f63c352f8335b91ebd56;hp=9379e6e5c4fe17df46b329bec021755db7bba2d9;hb=272f0ba89eca1d9fc700cf4c27b9f8c3e23d6fe8;hpb=a7f409e855291efece19970927156fae4e527b6e diff --git a/compiler/nativeGen/RegSpill.hs b/compiler/nativeGen/RegSpill.hs index 9379e6e..0fdb8ce 100644 --- a/compiler/nativeGen/RegSpill.hs +++ b/compiler/nativeGen/RegSpill.hs @@ -1,10 +1,5 @@ -{-# OPTIONS -w #-} --- The above warning supression flag is a temporary kludge. --- While working on this module you are encouraged to remove it and fix --- any warnings in the module. See --- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings --- for details +{-# OPTIONS -fno-warn-missing-signatures #-} module RegSpill ( regSpill, @@ -14,8 +9,6 @@ module RegSpill ( where -#include "HsVersions.h" - import RegLiveness import RegAllocInfo import MachRegs @@ -86,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 @@ -214,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)