diff options
author | Sebastian Graf <sebastian.graf@kit.edu> | 2020-04-09 13:25:17 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-05-26 03:04:04 -0400 |
commit | 6604906c8cfa37f5780a6d5c40506b751b1740db (patch) | |
tree | 7e8d49900a427b4a8b329e0b1664df3b365eaf76 /docs | |
parent | 53814a6424240ab50201fdde81a6e7832c1aad3d (diff) | |
download | haskell-6604906c8cfa37f5780a6d5c40506b751b1740db.tar.gz |
Make WorkWrap.Lib.isWorkerSmallEnough aware of the old arity
We should allow a wrapper with up to 82 parameters when the original
function had 82 parameters to begin with.
I verified that this made no difference on NoFib, but then again
it doesn't use huge records...
Fixes #18122.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/users_guide/using-optimisation.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/users_guide/using-optimisation.rst b/docs/users_guide/using-optimisation.rst index 8ec19cb147..25e46fb5ef 100644 --- a/docs/users_guide/using-optimisation.rst +++ b/docs/users_guide/using-optimisation.rst @@ -655,14 +655,15 @@ by saying ``-fno-wombat``. Sets the maximal number of iterations for the simplifier. .. ghc-flag:: -fmax-worker-args=⟨n⟩ - :shortdesc: *default: 10.* If a worker has that many arguments, none will - be unpacked anymore. + :shortdesc: *default: 10.* Maximum number of value arguments for a worker. :type: dynamic :category: :default: 10 - If a worker has that many arguments, none will be unpacked anymore. + A function will not be split into worker and wrapper if the number of + value arguments of the resulting worker exceeds both that of the original + function and this setting. .. ghc-flag:: -fno-opt-coercion :shortdesc: Turn off the coercion optimiser |