Fix specialisation for DFuns
When specialising a DFun we must take care to saturate the unfolding. See Note [Specialising DFuns] in Specialise. Fixes #18120
Showing
- compiler/GHC/Core/Opt/Specialise.hs 47 additions, 23 deletionscompiler/GHC/Core/Opt/Specialise.hs
- compiler/GHC/Core/Unfold.hs 24 additions, 24 deletionscompiler/GHC/Core/Unfold.hs
- compiler/GHC/HsToCore/Binds.hs 3 additions, 4 deletionscompiler/GHC/HsToCore/Binds.hs
- compiler/GHC/Tc/Gen/Sig.hs 2 additions, 5 deletionscompiler/GHC/Tc/Gen/Sig.hs
- testsuite/tests/simplCore/should_compile/T18120.hs 34 additions, 0 deletionstestsuite/tests/simplCore/should_compile/T18120.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