Files
swift-mirror/lib/Sema/ConstraintGraph.cpp
Pavel Yaskevich 0cc0a3a5f1 [ConstraintGraph] Optimize edge contraction
Previously on every step solver would iterate over all
constraints in attempt to find `BindParam` which could
be contracted. Instead of doing that, let's take advantage
of the fact that all (participating) closures are recorded
in the constraint system during constraint generation, so
it should be possible to check either outer parameter types
are contractable with their inner uses.
2021-03-01 17:23:14 -08:00

61 KiB