Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/da3362247b72531e1355748d1fdbc2c954a3f300

>---------------------------------------------------------------

commit da3362247b72531e1355748d1fdbc2c954a3f300
Author: Ian Lynagh <[email protected]>
Date:   Mon Sep 3 17:25:47 2012 +0100

    Remove doingTickyProfiling
    
    It's now just 'dopt Opt_Ticky'

>---------------------------------------------------------------

 compiler/codeGen/CgTicky.hs       |    4 ++--
 compiler/codeGen/ClosureInfo.lhs  |    2 +-
 compiler/codeGen/StgCmmClosure.hs |    2 +-
 compiler/codeGen/StgCmmTicky.hs   |    4 ++--
 compiler/main/DynFlags.hs         |    4 ----
 5 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/compiler/codeGen/CgTicky.hs b/compiler/codeGen/CgTicky.hs
index cfef108..bc3e26f 100644
--- a/compiler/codeGen/CgTicky.hs
+++ b/compiler/codeGen/CgTicky.hs
@@ -310,8 +310,8 @@ tickyAllocHeap hp
 
 ifTicky :: Code -> Code
 ifTicky code = do dflags <- getDynFlags
-                  if doingTickyProfiling dflags then code
-                                                else nopC
+                  if dopt Opt_Ticky dflags then code
+                                           else nopC
 
 addToMemLbl :: Width -> CLabel -> Int -> CmmStmt
 addToMemLbl rep lbl n = addToMem rep (CmmLit (CmmLabel lbl)) n
diff --git a/compiler/codeGen/ClosureInfo.lhs b/compiler/codeGen/ClosureInfo.lhs
index d3db24c..ae05bff 100644
--- a/compiler/codeGen/ClosureInfo.lhs
+++ b/compiler/codeGen/ClosureInfo.lhs
@@ -689,7 +689,7 @@ getCallMethod _dflags _name _caf (LFThunk _ _ _updatable 
_std_form_info is_fun)
     -- So the right thing to do is just to enter the thing
 
 -- Old version:
---  | updatable || doingTickyProfiling dflags -- to catch double entry
+--  | updatable || dopt Opt_Ticky dflags -- to catch double entry
 --  = EnterIt
 --  | otherwise        -- Jump direct to code for single-entry thunks
 --  = JumpToIt (thunkEntryLabel name caf std_form_info updatable)
diff --git a/compiler/codeGen/StgCmmClosure.hs 
b/compiler/codeGen/StgCmmClosure.hs
index 2afcb6a..b944208 100644
--- a/compiler/codeGen/StgCmmClosure.hs
+++ b/compiler/codeGen/StgCmmClosure.hs
@@ -498,7 +498,7 @@ getCallMethod dflags name caf (LFThunk _ _ updatable 
std_form_info is_fun) n_arg
                -- is the fast-entry code]
 
   -- Since is_fun is False, we are *definitely* looking at a data value
-  | updatable || doingTickyProfiling dflags -- to catch double entry
+  | updatable || dopt Opt_Ticky dflags -- to catch double entry
       {- OLD: || opt_SMP
         I decided to remove this, because in SMP mode it doesn't matter
         if we enter the same thunk multiple times, so the optimisation
diff --git a/compiler/codeGen/StgCmmTicky.hs b/compiler/codeGen/StgCmmTicky.hs
index 585d6b0..bb1c4cf 100644
--- a/compiler/codeGen/StgCmmTicky.hs
+++ b/compiler/codeGen/StgCmmTicky.hs
@@ -332,8 +332,8 @@ tickyAllocHeap hp
 
 ifTicky :: FCode () -> FCode ()
 ifTicky code = do dflags <- getDynFlags
-                  if doingTickyProfiling dflags then code
-                                                else nopC
+                  if dopt Opt_Ticky dflags then code
+                                           else nopC
 
 -- All the ticky-ticky counters are declared "unsigned long" in C
 bumpTickyCounter :: FastString -> FCode ()
diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs
index 3a2d424..7f00527 100644
--- a/compiler/main/DynFlags.hs
+++ b/compiler/main/DynFlags.hs
@@ -84,7 +84,6 @@ module DynFlags (
         updOptLevel,
         setTmpDir,
         setPackageName,
-        doingTickyProfiling,
 
         -- ** Parsing DynFlags
         parseDynamicFlagsCmdLine,
@@ -855,9 +854,6 @@ isNoLink :: GhcLink -> Bool
 isNoLink NoLink = True
 isNoLink _      = False
 
-doingTickyProfiling :: DynFlags -> Bool
-doingTickyProfiling dflags = dopt Opt_Ticky dflags
-
 data PackageFlag
   = ExposePackage   String
   | ExposePackageId String



_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to