Skip to content

Commit 9a6feeb

Browse files
committed
Simplify unreachable blocks with ossa instructions
1 parent 0b2a58d commit 9a6feeb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/SILOptimizer/Transforms/SimplifyCFG.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2319,6 +2319,10 @@ bool SimplifyCFG::simplifyUnreachableBlock(UnreachableInst *UI) {
23192319
case SILInstructionKind::StrongReleaseInst:
23202320
case SILInstructionKind::RetainValueInst:
23212321
case SILInstructionKind::ReleaseValueInst:
2322+
case SILInstructionKind::CopyValueInst:
2323+
case SILInstructionKind::DestroyValueInst:
2324+
case SILInstructionKind::BeginBorrowInst:
2325+
case SILInstructionKind::EndBorrowInst:
23222326
break;
23232327
// We can only ignore a dealloc_stack instruction if we can ignore all
23242328
// instructions in the block.

0 commit comments

Comments
 (0)