Properly compute unpacked sizes for -funpack-small-strict-fields.
Use rep size rather than rep count to compute the size. Fixes #22309
Showing
- compiler/GHC/Core/TyCon.hs 32 additions, 2 deletionscompiler/GHC/Core/TyCon.hs
- compiler/GHC/Types/Id/Make.hs 23 additions, 2 deletionscompiler/GHC/Types/Id/Make.hs
- docs/users_guide/9.10.1-notes.rst 10 additions, 0 deletionsdocs/users_guide/9.10.1-notes.rst
- docs/users_guide/using-optimisation.rst 3 additions, 3 deletionsdocs/users_guide/using-optimisation.rst
- testsuite/tests/simplCore/should_compile/T22309.hs 35 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