Improve duplicate elimination in SpecConstr
This partially fixes #24229. See the new Note [Pattern duplicate elimination] in SpecConstr
Showing
- compiler/GHC/Core/Opt/Simplify/Env.hs 2 additions, 3 deletionscompiler/GHC/Core/Opt/Simplify/Env.hs
- compiler/GHC/Core/Opt/SpecConstr.hs 75 additions, 38 deletionscompiler/GHC/Core/Opt/SpecConstr.hs
- compiler/GHC/Core/Rules.hs 14 additions, 7 deletionscompiler/GHC/Core/Rules.hs
- compiler/GHC/Core/Subst.hs 1 addition, 1 deletioncompiler/GHC/Core/Subst.hs
- compiler/GHC/Core/TyCo/Subst.hs 3 additions, 3 deletionscompiler/GHC/Core/TyCo/Subst.hs
- compiler/GHC/Core/Type.hs 1 addition, 1 deletioncompiler/GHC/Core/Type.hs
- compiler/GHC/Core/Unify.hs 1 addition, 1 deletioncompiler/GHC/Core/Unify.hs
- compiler/GHC/Tc/Utils/TcType.hs 1 addition, 1 deletioncompiler/GHC/Tc/Utils/TcType.hs
- testsuite/tests/simplCore/should_compile/T24229a.hs 14 additions, 0 deletionstestsuite/tests/simplCore/should_compile/T24229a.hs
- testsuite/tests/simplCore/should_compile/T24229a.stderr 38 additions, 0 deletionstestsuite/tests/simplCore/should_compile/T24229a.stderr
- testsuite/tests/simplCore/should_compile/T24229b.hs 13 additions, 0 deletionstestsuite/tests/simplCore/should_compile/T24229b.hs
- testsuite/tests/simplCore/should_compile/T24229b.stderr 28 additions, 0 deletionstestsuite/tests/simplCore/should_compile/T24229b.stderr
Loading
Please register or sign in to comment