X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fcmm%2FCmmContFlowOpt.hs;h=6909250efb10f9b71314d2dc7397a3846f306750;hb=6d574977031d878d5994689e4c4b5ea1159eef06;hp=b9a14afd7e79f5dd8423dcf413f1e00185f38676;hpb=0d80489c9b9f2421f65d8dd86c1e50c6bb429715;p=ghc-hetmet.git diff --git a/compiler/cmm/CmmContFlowOpt.hs b/compiler/cmm/CmmContFlowOpt.hs index b9a14af..6909250 100644 --- a/compiler/cmm/CmmContFlowOpt.hs +++ b/compiler/cmm/CmmContFlowOpt.hs @@ -58,7 +58,7 @@ branchChainElim (ListGraph blocks) isLoneBranch :: CmmBasicBlock -> Either (BlockId, BlockId) CmmBasicBlock isLoneBranch (BasicBlock id [CmmBranch target]) | id /= target = Left (id, target) isLoneBranch other_block = Right other_block - -- ^ An infinite loop is not a link in a branch chain! + -- An infinite loop is not a link in a branch chain! replaceLabels :: BlockEnv BlockId -> CmmBasicBlock -> CmmBasicBlock replaceLabels env (BasicBlock id stmts) @@ -95,7 +95,7 @@ isLoneBranchZ :: CmmBlock -> Either (BlockId, BlockId) CmmBlock isLoneBranchZ (G.Block id (G.ZLast (G.LastOther (LastBranch target)))) | id /= target = Left (id,target) isLoneBranchZ other = Right other - -- ^ An infinite loop is not a link in a branch chain! + -- An infinite loop is not a link in a branch chain! replaceLabelsZ :: BlockEnv BlockId -> CmmGraph -> CmmGraph replaceLabelsZ env = replace_eid . G.map_nodes id id last