Skip to content

Commit 91d530f

Browse files
committed
[CanonicalizeOSSALifetime] Ignore debug_values.
Added Kind::DebugValueInst to the list of opcodes that CanonicalizeOSSALifetime doesn't go out of its way to hoist over.
1 parent ea3d6e3 commit 91d530f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/swift/SILOptimizer/Utils/CanonicalOSSALifetime.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ class CanonicalizeOSSALifetime {
285285
/// be hoisted over to avoid churn and infinite looping.
286286
static bool ignoredByDestroyHoisting(SILInstructionKind kind) {
287287
switch (kind) {
288+
case SILInstructionKind::DebugValueInst:
288289
case SILInstructionKind::DestroyValueInst:
289290
case SILInstructionKind::CopyValueInst:
290291
case SILInstructionKind::BeginBorrowInst:

0 commit comments

Comments
 (0)