mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The old recursive algorithm had exponential complexity in worst case. The new algorithm is a simple iterative dataflow algorithm. This fixes <rdar://problem/19259710> Swift project locks up "indexing" or building (LifetimeChecker::doIt()) In the new algorithm I didn't specialize for the NumElements==1 case (as the old algorithm did), because IMO it does not make a significant difference. Swift SVN r24309
72 KiB
72 KiB