Files
swift-mirror/lib/SILOptimizer/Transforms/ARCCodeMotion.cpp
Erik Eckstein 96049626bc SILOptimizer: add complexity limit in ARCCodeMotion and DeadStoreElimination
Add an emergency exit to avoid bad compile time problems in rare corner cases.
The introduced limit is more than enough for "real world" code. Even large functions have < 100 locations.
But in some corner cases - especially in generated code - we can run into quadratic complexity for large functions without that limit.

Fixes a compile time problem.
Unfortunately I don't have isolated test cases for these problems.

rdar://106516360
2023-03-13 18:46:27 +01:00

47 KiB