summaryrefslogtreecommitdiff
path: root/compiler/cbits
diff options
context:
space:
mode:
authorAndreas Klebinger <klebinger.andreas@gmx.at>2020-01-28 20:53:04 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-05-27 02:35:11 -0400
commit03d69e4bb6b92ccd8238bebd9cff68da23741f49 (patch)
tree4dbaf811ec9bda4c9544530f63509ad8c7062bc3 /compiler/cbits
parent9faafb0aaff04e86a58b9e108f84618b12f2057c (diff)
downloadhaskell-03d69e4bb6b92ccd8238bebd9cff68da23741f49.tar.gz
Enable strict dicts by default at -O2.
In the common case this is a straight performance win at a compile time cost so we enable it at -O2. In rare cases it can lead to compile time regressions because of changed inlining behaviour. Which can very rarely also affect runtime performance. Increasing the inlining threshold can help to avoid this which is documented in the user guide. In terms of measured results this reduced instructions executed for nofib by 1%. However for some cases (e.g. Cabal) enabling this by default increases compile time by 2-3% so we enable it only at -O2 where it's clear that a user is willing to trade compile time for runtime. Most of the testsuite runs without -O2 so there are few perf changes. Increases: T12545/T18698: We perform more WW work because dicts are now treated strict. T9198: Also some more work because functions are now subject to W/W Decreases: T14697: Compiling empty modules. Probably because of changes inside ghc. T9203: I can't reproduce this improvement locally. Might be spurious. ------------------------- Metric Decrease: T12227 T14697 T9203 Metric Increase: T9198 T12545 T18698a T18698b -------------------------
Diffstat (limited to 'compiler/cbits')
0 files changed, 0 insertions, 0 deletions