Skip to content

Commit e305567

Browse files
committed
ConstantCapturePropagation: support sub-pass bisecting
1 parent c8f8736 commit e305567

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SwiftCompilerSources/Sources/Optimizer/FunctionPasses/ConstantCapturePropagation.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ let constantCapturePropagation = FunctionPass(name: "constant-capture-propagatio
6666
continue
6767
}
6868

69+
if !context.continueWithNextSubpassRun(for: partialApply) {
70+
return
71+
}
72+
6973
optimizeClosureWithDeadCaptures(of: partialApply, context)
7074

7175
if partialApply.isDeleted {

0 commit comments

Comments
 (0)