[commit: ghc] wip/T14626: WIP: be less chatty (9412f0e)
git at git.haskell.org
git at git.haskell.org
Wed Jan 17 12:55:42 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/T14626
Link : http://ghc.haskell.org/trac/ghc/changeset/9412f0e6d4f79aac61462f3c580af0ecbe61378c/ghc
>---------------------------------------------------------------
commit 9412f0e6d4f79aac61462f3c580af0ecbe61378c
Author: Gabor Greif <ggreif at gmail.com>
Date: Wed Jan 17 13:50:59 2018 +0100
WIP: be less chatty
>---------------------------------------------------------------
9412f0e6d4f79aac61462f3c580af0ecbe61378c
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 31fc592..6a3b174 100644
--- a/compiler/codeGen/StgCmmClosure.hs
+++ b/compiler/codeGen/StgCmmClosure.hs
@@ -643,8 +643,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