summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-04-22 13:12:49 -0400
committerBen Gamari <ben@smart-cactus.org>2021-05-12 15:44:45 -0400
commitc12d0ed8fc6d516013a693c0f8ff88072343c4ea (patch)
treeee845243da641aeeb93709075e9fc1dc84690fcb
parent7ab696ceaee269b42d0a7fde011791aadd227368 (diff)
downloadhaskell-c12d0ed8fc6d516013a693c0f8ff88072343c4ea.tar.gz
users-guide: Document deprecation of -funfolding-keeness-factor
See #15304. (cherry picked from commit 3339ed49b103d5aab42733dfb434de3a9a27bf2b)
-rw-r--r--docs/users_guide/9.0.1-notes.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/users_guide/9.0.1-notes.rst b/docs/users_guide/9.0.1-notes.rst
index c0db022030..0e83843dd1 100644
--- a/docs/users_guide/9.0.1-notes.rst
+++ b/docs/users_guide/9.0.1-notes.rst
@@ -263,6 +263,13 @@ Compiler
:ghc-flag:`-funfolding-use-threshold=⟨n⟩` or use :pragma:`INLINE` pragmas to
more precisely force inlining.
+- The ``-funfolding-keeness-factor`` flag has been deprecated as its scaling
+ strategy resulted in unreasonably large discounts in some cases (see
+ :ghc-ticket:`15304`). Users who previously used this flag to suggest
+ more aggressive inlining are advised to look at
+ :ghc-flag:`-funfolding-use-threshold=⟨n⟩` or use :pragma:`INLINE` pragmas to
+ more precisely force inlining.
+
GHCi
~~~~