Properly compute unpacked sizes for -funpack-small-strict-fields.
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
parent
14b5982a
No related branches found
No related tags found
Checking pipeline status
Showing
- compiler/GHC/Core/TyCon.hs 33 additions, 2 deletionscompiler/GHC/Core/TyCon.hs
- compiler/GHC/Types/Id/Make.hs 23 additions, 3 deletionscompiler/GHC/Types/Id/Make.hs
- docs/users_guide/using-optimisation.rst 3 additions, 3 deletionsdocs/users_guide/using-optimisation.rst
- testsuite/tests/simplCore/should_compile/T22309.hs 51 additions, 0 deletionstestsuite/tests/simplCore/should_compile/T22309.hs
- testsuite/tests/simplCore/should_compile/T22309.stderr 88 additions, 0 deletionstestsuite/tests/simplCore/should_compile/T22309.stderr
- testsuite/tests/simplCore/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/simplCore/should_compile/all.T
Loading
Please register or sign in to comment