X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FnativeGen%2FRegAllocColor.hs;h=5c8569145f6ddaf3d79d998b8bcfd225cc390c3f;hb=2922c9ae951271a60db6fd6b2488f9d8111e442e;hp=51a0bffbc6c9f7efa4c6e8ff05497e202182bd17;hpb=206b4dec78250efef3cd927d64dc6cbc54a16c3d;p=ghc-hetmet.git diff --git a/compiler/nativeGen/RegAllocColor.hs b/compiler/nativeGen/RegAllocColor.hs index 51a0bff..5c85691 100644 --- a/compiler/nativeGen/RegAllocColor.hs +++ b/compiler/nativeGen/RegAllocColor.hs @@ -33,7 +33,7 @@ import Data.List import Data.Maybe import Control.Monad --- | The maximum number of build/spill cycles we'll allow. +-- | The maximum number of build\/spill cycles we'll allow. -- We should only need 3 or 4 cycles tops. -- If we run for any longer than this we're probably in an infinite loop, -- It's probably better just to bail out and report a bug at this stage. @@ -48,9 +48,9 @@ regAlloc -> UniqFM (UniqSet Reg) -- ^ the registers we can use for allocation -> UniqSet Int -- ^ the set of available spill slots. -> [LiveCmmTop] -- ^ code annotated with liveness information. - -> UniqSM - ( [NatCmmTop] -- ^ code with registers allocated. - , [RegAllocStats] ) -- ^ stats for each stage of allocation + -> UniqSM ( [NatCmmTop], [RegAllocStats] ) + -- ^ code with registers allocated and stats for each stage of + -- allocation regAlloc dflags regsFree slotsFree code = do