Fix #17724 by having occAnal preserve used bindings.
It sometimes happened that occAnal would remove bindings as dead code by relying on bindings to be in dependency order. The fix was contributed by SPJ.
Showing
- compiler/simplCore/OccurAnal.hs 7 additions, 2 deletionscompiler/simplCore/OccurAnal.hs
- testsuite/tests/simplCore/should_compile/T17722A.hs 20 additions, 0 deletionstestsuite/tests/simplCore/should_compile/T17722A.hs
- testsuite/tests/simplCore/should_compile/T17722B.hs 73 additions, 0 deletionstestsuite/tests/simplCore/should_compile/T17722B.hs
- testsuite/tests/simplCore/should_compile/T17724.hs 26 additions, 0 deletionstestsuite/tests/simplCore/should_compile/T17724.hs
- testsuite/tests/simplCore/should_compile/all.T 2 additions, 0 deletionstestsuite/tests/simplCore/should_compile/all.T
Loading
Please register or sign in to comment