Files
swift-mirror/SwiftCompilerSources/Sources/Optimizer/PassManager
Meghana Gupta 784da0a090 Correctly invalidate analyses after keypath optimization
Keypath simplification can create new basic blocks when projecting
optional chain components (OptionalChainProjector splits the block and creates new conditional branches).
However, the Swift-side tryOptimizeKeypath was not notifying the pass manager about
CFG or instruction changes, leaving analyses like the dominator tree stale.
Fix this by calling notifyBranchesChanged() and notifyInstructionsChanged()
when tryOptimizeKeypath succeeds.
2026-04-24 09:43:42 -07:00
..