summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAndreas Klebinger <klebinger.andreas@gmx.at>2023-01-19 15:29:11 +0100
committerAndreas Klebinger <klebinger.andreas@gmx.at>2023-01-20 17:24:31 +0100
commit1bd1cdbde9c5345602f595d9688c3a1e0b9b510a (patch)
tree3ec9b0fc26317d6dcf1a6cc293566f704f4cb625 /docs
parent14b5982a3aea351e4b01c5804ebd4d4629ba6bab (diff)
downloadhaskell-wip/andreask/unpack_unboxed_tuples.tar.gz
Properly compute unpacked sizes for -funpack-small-strict-fields.wip/andreask/unpack_unboxed_tuples
Base unpacking under -funpack-small-strict-fields on the rep size of the unpacked constructor instead of the number of reps it's represented by. Fixes #22309
Diffstat (limited to 'docs')
-rw-r--r--docs/users_guide/using-optimisation.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/users_guide/using-optimisation.rst b/docs/users_guide/using-optimisation.rst
index d3ca68a1df..4b523a95cf 100644
--- a/docs/users_guide/using-optimisation.rst
+++ b/docs/users_guide/using-optimisation.rst
@@ -1468,9 +1468,9 @@ by saying ``-fno-wombat``.
default you can disable it for certain constructor fields using the
``NOUNPACK`` pragma (see :ref:`nounpack-pragma`).
- Note that for consistency ``Double``, ``Word64``, and ``Int64``
- constructor fields are unpacked on 32-bit platforms, even though
- they are technically larger than a pointer on those platforms.
+ Note that for consistency constructor fields are unpacked on 32-bit platforms
+ as if it we were compiling for a 64-bit target even if fields are larger
+ than a pointer on those platforms.
.. ghc-flag:: -funbox-strict-fields
:shortdesc: Flatten strict constructor fields