Fix join-point decision
This patch moves the "ok_unfolding" test from CoreOpt.joinPointBinding_maybe to OccurAnal.decideJoinPointHood Previously the occurrence analyser was deciding to make something a join point, but the simplifier was reversing that decision, which made the decision about /other/ bindings invalid. Fixes Trac #14650. (cherry picked from commit 66ff794f)
Showing
- compiler/coreSyn/CoreOpt.hs 2 additions, 42 deletionscompiler/coreSyn/CoreOpt.hs
- compiler/simplCore/OccurAnal.hs 57 additions, 11 deletionscompiler/simplCore/OccurAnal.hs
- testsuite/tests/simplCore/should_compile/T14650.hs 76 additions, 0 deletionstestsuite/tests/simplCore/should_compile/T14650.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