X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fcmm%2FDataflow.hs;fp=compiler%2Fcmm%2FDataflow.hs;h=939d67de47bfbf72faea15a28c3d64652d4e6591;hb=8e3b5645e0bab683444c81bbbac87e2df6799959;hp=5001cc803c32b59ca14c9b40b81f1b089e99d896;hpb=f2cc8b5bc34519a65581dc40b7bfebac97bffd73;p=ghc-hetmet.git diff --git a/compiler/cmm/Dataflow.hs b/compiler/cmm/Dataflow.hs index 5001cc8..939d67d 100644 --- a/compiler/cmm/Dataflow.hs +++ b/compiler/cmm/Dataflow.hs @@ -73,7 +73,9 @@ cmmStmtLive other_live (CmmSwitch expr targets) = cmmExprLive expr . (foldr ((.) . (addLive . lookupWithDefaultUFM other_live emptyUniqSet)) id (mapCatMaybes id targets)) cmmStmtLive _ (CmmJump expr params) = - const (cmmExprLive expr (mkUniqSet params)) + const (cmmExprLive expr $ foldr ((.) . cmmExprLive) id (map fst params) $ emptyUniqSet) +cmmStmtLive _ (CmmReturn params) = + const (foldr ((.) . cmmExprLive) id (map fst params) $ emptyUniqSet) --------