Skip to content

Commit 136773f

Browse files
author
Raj Barik
committed
ProtocolDevirtualizer Part 3: Peephole Optimization to Propagate Concrete Types
1 parent e168290 commit 136773f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/SILOptimizer/SILCombiner/SILCombinerApplyVisitors.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,6 +1644,8 @@ SILInstruction *SILCombiner::visitTryApplyInst(TryApplyInst *AI) {
16441644
if (isa<FunctionRefInst>(AI->getCallee())) {
16451645
if (propagateConcreteTypeOfInitExistential(AI)) {
16461646
return nullptr;
1647+
} else if (propagateConcreteTypeOfInitExistentialToAllApplyArgs(AI)) {
1648+
return nullptr;
16471649
}
16481650
}
16491651

0 commit comments

Comments
 (0)