Improve debug tracing for substitution
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
Showing
- compiler/GHC/Core/Opt/Arity.hs 10 additions, 7 deletionscompiler/GHC/Core/Opt/Arity.hs
- compiler/GHC/Core/Opt/CSE.hs 1 addition, 1 deletioncompiler/GHC/Core/Opt/CSE.hs
- compiler/GHC/Core/Opt/Simplify/Utils.hs 3 additions, 4 deletionscompiler/GHC/Core/Opt/Simplify/Utils.hs
- compiler/GHC/Core/Opt/SpecConstr.hs 1 addition, 1 deletioncompiler/GHC/Core/Opt/SpecConstr.hs
- compiler/GHC/Core/Opt/Specialise.hs 1 addition, 1 deletioncompiler/GHC/Core/Opt/Specialise.hs
- compiler/GHC/Core/Rules.hs 2 additions, 2 deletionscompiler/GHC/Core/Rules.hs
- compiler/GHC/Core/SimpleOpt.hs 11 additions, 10 deletionscompiler/GHC/Core/SimpleOpt.hs
- compiler/GHC/Core/Subst.hs 30 additions, 32 deletionscompiler/GHC/Core/Subst.hs
Loading
Please register or sign in to comment