mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
COWOpts: handle debug_value instructions
Don't let debug_value instructions bail the optimization. This fixes a couple of performance regressions, which were introduced by adding more debug_value instructions (https://github.com/apple/swift/pull/38736). rdar://82327743
This commit is contained in:
@@ -247,6 +247,7 @@ void COWOptsPass::collectEscapePoints(SILValue v,
|
||||
case SILInstructionKind::BeginCOWMutationInst:
|
||||
case SILInstructionKind::RefElementAddrInst:
|
||||
case SILInstructionKind::RefTailAddrInst:
|
||||
case SILInstructionKind::DebugValueInst:
|
||||
break;
|
||||
case SILInstructionKind::BranchInst:
|
||||
collectEscapePoints(cast<BranchInst>(user)->getArgForOperand(use),
|
||||
|
||||
Reference in New Issue
Block a user