Skip to content

Commit 0fd48fc

Browse files
committed
[CopyPropagation] Cleanup after borrow shrinking.
1 parent 42078f1 commit 0fd48fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/SILOptimizer/Transforms/CopyPropagation.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ void CopyPropagation::run() {
440440
while (auto *bbi = beginBorrowsToShrink.pop()) {
441441
changed |= shrinkBorrowScope(bbi, deleter);
442442
}
443+
deleter.cleanupDeadInstructions();
443444

444445
// canonicalizer performs all modifications through deleter's callbacks, so we
445446
// don't need to explicitly check for changes.

0 commit comments

Comments
 (0)