summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-10-06 17:05:26 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-08 05:12:58 -0400
commit0a26f9e8e4714d547b8c20d2d5ce1ba0644316bf (patch)
tree2e11ee61838909917801c4091df0f5addd94d4f7 /docs
parent180cf1775f4d5fd97814ec87a1d2a8235f0a8152 (diff)
downloadhaskell-0a26f9e8e4714d547b8c20d2d5ce1ba0644316bf.tar.gz
users-guide: Document -fworker-wrapper
Diffstat (limited to 'docs')
-rw-r--r--docs/users_guide/using-optimisation.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/users_guide/using-optimisation.rst b/docs/users_guide/using-optimisation.rst
index a7bec151e6..a8fd5e2d39 100644
--- a/docs/users_guide/using-optimisation.rst
+++ b/docs/users_guide/using-optimisation.rst
@@ -1250,6 +1250,17 @@ by saying ``-fno-wombat``.
determines if a function definition will be kept around at all for
potential inlining.
+.. ghc-flag:: -fworker-wrapper
+ :shortdesc: Enable the worker-wrapper transformation.
+ :type: dynamic
+ :category:
+
+ Enable the worker-wrapper transformation after a strictness
+ analysis pass. Implied by :ghc-flag:`-O`, and by :ghc-flag:`-fstrictness`.
+ Disabled by :ghc-flag:`-fno-strictness`. Enabling :ghc-flag:`-fworker-wrapper`
+ while strictness analysis is disabled (by :ghc-flag:`-fno-strictness`)
+ has no effect.
+
.. ghc-flag:: -fbinary-blob-threshold=⟨n⟩
:shortdesc: *default: 500K.* Tweak assembly generator for binary blobs.
:type: dynamic