Remove some redundant code
authorIan Lynagh <igloo@earth.li>
Mon, 15 Dec 2008 19:40:47 +0000 (19:40 +0000)
committerIan Lynagh <igloo@earth.li>
Mon, 15 Dec 2008 19:40:47 +0000 (19:40 +0000)
We were looking at opt_DoTickyProfiling, and if it was set claling ifTicky
which looks at opt_DoTickyProfiling itself.

compiler/codeGen/CgTicky.hs
compiler/codeGen/StgCmmTicky.hs

index b23b34c..5422127 100644 (file)
@@ -190,8 +190,6 @@ tickyReturnOldCon arity
   = ifTicky $ do { bumpTickyCounter (sLit "RET_OLD_ctr")
                 ; bumpHistogram (sLit "RET_OLD_hst") arity }
 tickyReturnNewCon arity 
   = ifTicky $ do { bumpTickyCounter (sLit "RET_OLD_ctr")
                 ; bumpHistogram (sLit "RET_OLD_hst") arity }
 tickyReturnNewCon arity 
-  | not opt_DoTickyProfiling = nopC
-  | otherwise
   = ifTicky $ do { bumpTickyCounter (sLit "RET_NEW_ctr")
                 ; bumpHistogram (sLit "RET_NEW_hst") arity }
 
   = ifTicky $ do { bumpTickyCounter (sLit "RET_NEW_ctr")
                 ; bumpHistogram (sLit "RET_NEW_hst") arity }
 
index e4bebb4..33fe104 100644 (file)
@@ -190,8 +190,6 @@ tickyReturnOldCon arity
   = ifTicky $ do { bumpTickyCounter (sLit "RET_OLD_ctr")
                 ; bumpHistogram (sLit "RET_OLD_hst") arity }
 tickyReturnNewCon arity 
   = ifTicky $ do { bumpTickyCounter (sLit "RET_OLD_ctr")
                 ; bumpHistogram (sLit "RET_OLD_hst") arity }
 tickyReturnNewCon arity 
-  | not opt_DoTickyProfiling = nopC
-  | otherwise
   = ifTicky $ do { bumpTickyCounter (sLit "RET_NEW_ctr")
                 ; bumpHistogram (sLit "RET_NEW_hst") arity }
 
   = ifTicky $ do { bumpTickyCounter (sLit "RET_NEW_ctr")
                 ; bumpHistogram (sLit "RET_NEW_hst") arity }