[Git][ghc/ghc][wip/spj-unf-size] Adjust back

Simon Peyton Jones (@simonpj) gitlab at gitlab.haskell.org
Wed Nov 22 17:48:27 UTC 2023



Simon Peyton Jones pushed to branch wip/spj-unf-size at Glasgow Haskell Compiler / GHC


Commits:
1d10a893 by Simon Peyton Jones at 2023-11-22T17:48:11+00:00
Adjust back

- - - - -


1 changed file:

- compiler/GHC/Core/Unfold.hs


Changes:

=====================================
compiler/GHC/Core/Unfold.hs
=====================================
@@ -206,7 +206,7 @@ defaultUnfoldingOpts = UnfoldingOpts
       -- inline into Csg.calc (The unfolding for sqr never makes it
       -- into the interface file.)
 
-   , unfoldingUseThreshold   = 80
+   , unfoldingUseThreshold   = 75
       -- Adjusted 90 -> 80 when adding discounts for free variables which
       -- generally make things more likely to inline.  Reducing the threshold
       -- eliminates some undesirable compile-time regressions (e.g. T10412a)
@@ -214,7 +214,7 @@ defaultUnfoldingOpts = UnfoldingOpts
       -- Previously: adjusted upwards in #18282, when I reduced
       -- the result discount for constructors.
 
-   , unfoldingFunAppDiscount = 30
+   , unfoldingFunAppDiscount = 45
       -- Be fairly keen to inline a function if that means
       -- we'll be able to pick the right method from a dictionary
 



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1d10a893039d73de1ef520f6d67185b3fd2bd743

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1d10a893039d73de1ef520f6d67185b3fd2bd743
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20231122/750910d6/attachment.html>


More information about the ghc-commits mailing list