Add -fpolymorphic-specialisation flag (off by default at all optimisation levels)
Polymorphic specialisation has led to a number of hard to diagnose incorrect runtime result bugs (see #23469, #23109, #21229, #23445) so this commit introduces a flag `-fpolymorhphic-specialisation` which allows users to turn on this experimental optimisation if they are willing to buy into things going very wrong. Ticket #23469
Showing
- compiler/GHC/Core/Opt/Specialise.hs 25 additions, 4 deletionscompiler/GHC/Core/Opt/Specialise.hs
- compiler/GHC/Driver/Flags.hs 1 addition, 0 deletionscompiler/GHC/Driver/Flags.hs
- compiler/GHC/Driver/Session.hs 1 addition, 0 deletionscompiler/GHC/Driver/Session.hs
- docs/users_guide/9.8.1-notes.rst 8 additions, 3 deletionsdocs/users_guide/9.8.1-notes.rst
- docs/users_guide/using-optimisation.rst 15 additions, 0 deletionsdocs/users_guide/using-optimisation.rst
- testsuite/tests/simplCore/should_compile/T8331.stderr 0 additions, 144 deletionstestsuite/tests/simplCore/should_compile/T8331.stderr
- testsuite/tests/simplCore/should_compile/all.T 4 additions, 4 deletionstestsuite/tests/simplCore/should_compile/all.T
Loading
Please register or sign in to comment