Make the simplifier slightly stricter.
This commit reduces allocations by the simplifier by 3% for the Cabal test at -O2. We do this by making a few select fields, bindings and arguments strict which reduces allocations for the simplifier by around 3% in total for the Cabal test. Which is about 2% fewer allocations in total at -O2. ------------------------- Metric Decrease: T18698a T18698b T9233 T9675 T9872a T9872b T9872c T9872d T10421 T12425 T13253 T5321FD T9961 -------------------------
Showing
- compiler/GHC/Core/Opt/Simplify.hs 63 additions, 17 deletionscompiler/GHC/Core/Opt/Simplify.hs
- compiler/GHC/Core/Opt/Simplify/Env.hs 46 additions, 26 deletionscompiler/GHC/Core/Opt/Simplify/Env.hs
- compiler/GHC/Core/Opt/Simplify/Utils.hs 4 additions, 4 deletionscompiler/GHC/Core/Opt/Simplify/Utils.hs
- compiler/GHC/Core/TyCo/Rep.hs 4 additions, 1 deletioncompiler/GHC/Core/TyCo/Rep.hs
- compiler/GHC/Data/OrdList.hs 16 additions, 1 deletioncompiler/GHC/Data/OrdList.hs
Loading
Please register or sign in to comment