diff options
author | Simon Marlow <marlowsd@gmail.com> | 2012-01-25 10:08:20 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2012-01-25 10:08:20 +0000 |
commit | 19be2021689f9134316ba567e0a7c8198f0487ae (patch) | |
tree | 64e097873283e593f67105284e8d35b16c359456 /compiler/codeGen/StgCmmTicky.hs | |
parent | 9b6dbdea12e607a7012c73c38f1e876d43cf1274 (diff) | |
download | haskell-19be2021689f9134316ba567e0a7c8198f0487ae.tar.gz |
Different implementation of MkGraph
Diffstat (limited to 'compiler/codeGen/StgCmmTicky.hs')
-rw-r--r-- | compiler/codeGen/StgCmmTicky.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/codeGen/StgCmmTicky.hs b/compiler/codeGen/StgCmmTicky.hs index a6c592cfd8..ea74a03e1e 100644 --- a/compiler/codeGen/StgCmmTicky.hs +++ b/compiler/codeGen/StgCmmTicky.hs @@ -181,7 +181,7 @@ registerTickyCtr :: CLabel -> FCode () -- ticky_entry_ctrs = & (f_ct); /* mark it as "registered" */ -- f_ct.registeredp = 1 } registerTickyCtr ctr_lbl - = emit (mkCmmIfThen test (catAGraphs register_stmts)) + = emit =<< mkCmmIfThen test (catAGraphs register_stmts) where -- krc: code generator doesn't handle Not, so we test for Eq 0 instead test = CmmMachOp (MO_Eq wordWidth) @@ -353,7 +353,7 @@ bumpHistogram _lbl _n bumpHistogramE :: LitString -> CmmExpr -> FCode () bumpHistogramE lbl n = do t <- newTemp cLong - emit (mkAssign (CmmLocal t) n) + emitAssign (CmmLocal t) n emit (mkCmmIfThen (CmmMachOp (MO_U_Le cLongWidth) [CmmReg (CmmLocal t), eight]) (mkAssign (CmmLocal t) eight)) emit (addToMem cLong |