Fix #23567, a specializer bug
Found by Simon in ghc/ghc#23567 (comment 507834) The testcase isn't ideal because it doesn't detect the bug in master, unless doNotUnbox is removed as in ghc/ghc#23567 (comment 507692). But I have confirmed that with that modification, it fails before and passes afterwards. (cherry picked from commit bf9b9de0)
Showing
- compiler/GHC/Core/Opt/Specialise.hs 3 additions, 1 deletioncompiler/GHC/Core/Opt/Specialise.hs
- testsuite/tests/simplCore/should_compile/T23567.hs 10 additions, 0 deletionstestsuite/tests/simplCore/should_compile/T23567.hs
- testsuite/tests/simplCore/should_compile/T23567A.hs 27 additions, 0 deletionstestsuite/tests/simplCore/should_compile/T23567A.hs
- 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