diff options
author | Andreas Klebinger <klebinger.andreas@gmx.at> | 2023-01-19 15:29:11 +0100 |
---|---|---|
committer | Andreas Klebinger <klebinger.andreas@gmx.at> | 2023-01-20 17:24:31 +0100 |
commit | 1bd1cdbde9c5345602f595d9688c3a1e0b9b510a (patch) | |
tree | 3ec9b0fc26317d6dcf1a6cc293566f704f4cb625 /docs/users_guide/using-optimisation.rst | |
parent | 14b5982a3aea351e4b01c5804ebd4d4629ba6bab (diff) | |
download | haskell-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/users_guide/using-optimisation.rst')
-rw-r--r-- | docs/users_guide/using-optimisation.rst | 6 |
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 |