[commit: ghc] wip/T14626: WIP: be less chatty (c3dd9a1)

git at git.haskell.org git at git.haskell.org
Sun Jan 28 16:07:06 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/T14626
Link       : http://ghc.haskell.org/trac/ghc/changeset/c3dd9a15b60db136a50e40466e304ccf396cbb55/ghc

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

commit c3dd9a15b60db136a50e40466e304ccf396cbb55
Author: Gabor Greif <ggreif at gmail.com>
Date:   Wed Jan 17 13:50:59 2018 +0100

    WIP: be less chatty


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

c3dd9a15b60db136a50e40466e304ccf396cbb55
 compiler/codeGen/StgCmmClosure.hs | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/compiler/codeGen/StgCmmClosure.hs b/compiler/codeGen/StgCmmClosure.hs
index d5caff8..0eeb1db 100644
--- a/compiler/codeGen/StgCmmClosure.hs
+++ b/compiler/codeGen/StgCmmClosure.hs
@@ -641,8 +641,9 @@ getCallMethod _ name id (LFUnknown False) 0 _v_args _cg_loc _self_loop_info
   , OtherCon _ <- idUnfolding id
   , let str = occNameString (nameOccName name)
   -- , take 4 str == "wild" || pprTrace "getCallMethod#####" (ppr id $$ ppr (idUnfolding id)) True
-  , take 4 str == "wild" || (str == "ds2")
-  = pprTrace "####getCallMethod" (ppr id) ReturnIt' (str == "ds2") -- seems to come from case, must be (tagged) WHNF already
+  , let interesting = str == "ds2"
+  , take 4 str == "wild" || interesting
+  = (if interesting then pprTrace "####getCallMethod" (ppr id) else GhcPrelude.id) ReturnIt' (str == "ds2") -- seems to come from case, must be (tagged) WHNF already
 
 getCallMethod _ name _ (LFUnknown False) n_args _v_args _cg_loc _self_loop_info
   = ASSERT2( n_args == 0, ppr name <+> ppr n_args )



More information about the ghc-commits mailing list