X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FnativeGen%2FRegAllocColor.hs;h=5c8569145f6ddaf3d79d998b8bcfd225cc390c3f;hb=dbc0a8f9177695592f960cc6dbd00c5e6f061e3f;hp=e2e002af3516d811e076462543a9fb15081ef062;hpb=727fae32ea0b6ca6ebdf1b3137649813e4d7ac3d;p=ghc-hetmet.git diff --git a/compiler/nativeGen/RegAllocColor.hs b/compiler/nativeGen/RegAllocColor.hs index e2e002a..5c85691 100644 --- a/compiler/nativeGen/RegAllocColor.hs +++ b/compiler/nativeGen/RegAllocColor.hs @@ -24,7 +24,7 @@ import PprMach import UniqSupply import UniqSet -import LazyUniqFM +import UniqFM import Bag import Outputable import DynFlags @@ -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