X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FsimplStg%2FSRT.lhs;h=dfd98329a116f83a75ed40cbfbf61f4ed642d095;hp=57c638d5db6c1373012cf726b87d227225895214;hb=8d84d843da4886861b2b27236b413ad135666653;hpb=8127cc88e413dd16c8e2fff41286a68df532637f diff --git a/compiler/simplStg/SRT.lhs b/compiler/simplStg/SRT.lhs index 57c638d..dfd9832 100644 --- a/compiler/simplStg/SRT.lhs +++ b/compiler/simplStg/SRT.lhs @@ -25,7 +25,7 @@ import Id ( Id ) import VarSet import VarEnv import Maybes ( orElse, expectJust ) -import Bitmap ( intsToBitmap ) +import Bitmap #ifdef DEBUG import Outputable @@ -144,7 +144,7 @@ srtExpr table (StgLetNoEscape live1 live2 bind body) StgLetNoEscape live1 live2 bind' body' #ifdef DEBUG -srtExpr table expr = pprPanic "srtExpr" (ppr expr) +srtExpr _table expr = pprPanic "srtExpr" (ppr expr) #endif srtAlt :: IdEnv Int -> StgAlt -> StgAlt @@ -157,7 +157,7 @@ srtAlt table (con,args,used,rhs) constructSRT :: IdEnv Int -> SRT -> SRT constructSRT table (SRTEntries entries) | isEmptyVarSet entries = NoSRT - | otherwise = SRT offset len bitmap + | otherwise = seqBitmap bitmap $ SRT offset len bitmap where ints = map (expectJust "constructSRT" . lookupVarEnv table) (varSetElems entries)