summaryrefslogtreecommitdiff
path: root/compiler/GHC/Core/Opt/CSE.hs
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2020-06-26 09:34:43 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2020-06-30 10:43:50 +0100
commitffd3254d5ea70470d49a8d43ccdcb2b5c01f4e91 (patch)
tree5f9671cd5c84ab81cbd6091884362890260f2540 /compiler/GHC/Core/Opt/CSE.hs
parenta3d69dc6c2134afe239caf4f881ba5542d2c2be0 (diff)
downloadhaskell-wip/T18395.tar.gz
Improve debug tracing for substitutionwip/T18395
This patch improves debug tracing a bit (#18395) * Remove the ancient SDoc argument to substitution, replacing it with a HasDebugCallStack constraint. The latter does the same job (indicate the call site) but much better. * Add HasDebugCallStack to simpleOptExpr, exprIsConApp_maybe I needed this to help nail the lookupIdSubst panic in #18326, #17784
Diffstat (limited to 'compiler/GHC/Core/Opt/CSE.hs')
-rw-r--r--compiler/GHC/Core/Opt/CSE.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Core/Opt/CSE.hs b/compiler/GHC/Core/Opt/CSE.hs
index d6f37f6eb5..019b578db2 100644
--- a/compiler/GHC/Core/Opt/CSE.hs
+++ b/compiler/GHC/Core/Opt/CSE.hs
@@ -775,7 +775,7 @@ csEnvSubst :: CSEnv -> Subst
csEnvSubst = cs_subst
lookupSubst :: CSEnv -> Id -> OutExpr
-lookupSubst (CS { cs_subst = sub}) x = lookupIdSubst (text "CSE.lookupSubst") sub x
+lookupSubst (CS { cs_subst = sub}) x = lookupIdSubst sub x
extendCSSubst :: CSEnv -> Id -> CoreExpr -> CSEnv
extendCSSubst cse x rhs = cse { cs_subst = extendSubst (cs_subst cse) x rhs }