Do not optimise RULE lhs in substRule
This was causing Trac #10627. See Note [Substitute lazily] in CoreSubst. The bug was introduced by commit 30c17e70 Author: simonpj@microsoft.com <unknown> Date: Thu Nov 25 17:23:56 2010 +0000 Substitution should just substitute, not optimise The fix is not to optimise the RHS as well as not-optimising the LHS! The simplifier does the right thing in Simplify.simplRule
Showing
- compiler/coreSyn/CoreSubst.hs 23 additions, 8 deletionscompiler/coreSyn/CoreSubst.hs
- testsuite/tests/simplCore/should_compile/T10627.hs 17 additions, 0 deletionstestsuite/tests/simplCore/should_compile/T10627.hs
- testsuite/tests/simplCore/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/simplCore/should_compile/all.T
Loading
Please register or sign in to comment