Do better sharing in the short-cut solver
Trac #15164 showed that it sometimes really matters to share sub-proofs when solving constraints. Without it, we can get exponentialy bad behaviour. Fortunately, it's easily solved. Note [Shortcut try_solve_from_instance] explains. I did some minor assocaited refactoring.
Showing
- compiler/typecheck/TcEvidence.hs 5 additions, 1 deletioncompiler/typecheck/TcEvidence.hs
- compiler/typecheck/TcInteract.hs 100 additions, 59 deletionscompiler/typecheck/TcInteract.hs
- compiler/typecheck/TcSMonad.hs 15 additions, 3 deletionscompiler/typecheck/TcSMonad.hs
- testsuite/tests/perf/compiler/T15164.hs 501 additions, 0 deletionstestsuite/tests/perf/compiler/T15164.hs
- testsuite/tests/perf/compiler/all.T 10 additions, 0 deletionstestsuite/tests/perf/compiler/all.T
Loading
Please register or sign in to comment