Make CSE delay inlining less
CSE delays inlining a little bit, to avoid losing vital specialisations; see Note [Delay inlining after CSE] in CSE. But it was being over-enthusiastic. This patch makes the delay only apply to Ids with specialisation rules, which avoids unnecessary delay (#17409).
Showing
- compiler/simplCore/CSE.hs 49 additions, 7 deletionscompiler/simplCore/CSE.hs
- testsuite/tests/numeric/should_compile/T14465.stdout 1 addition, 1 deletiontestsuite/tests/numeric/should_compile/T14465.stdout
- testsuite/tests/numeric/should_compile/T7116.stdout 2 additions, 2 deletionstestsuite/tests/numeric/should_compile/T7116.stdout
- testsuite/tests/perf/compiler/T16473.stdout 0 additions, 1 deletiontestsuite/tests/perf/compiler/T16473.stdout
- testsuite/tests/simplCore/should_compile/Makefile 5 additions, 0 deletionstestsuite/tests/simplCore/should_compile/Makefile
- testsuite/tests/simplCore/should_compile/T17409.hs 9 additions, 0 deletionstestsuite/tests/simplCore/should_compile/T17409.hs
- testsuite/tests/simplCore/should_compile/T17409.stdout 2 additions, 0 deletionstestsuite/tests/simplCore/should_compile/T17409.stdout
- testsuite/tests/simplCore/should_compile/all.T 4 additions, 1 deletiontestsuite/tests/simplCore/should_compile/all.T
Loading
Please register or sign in to comment