Skip to content

Commit 89140ec

Browse files
committed
[CanOSSALifetime] Treat end_access as non-use.
Use PrunedLiveness' new extendToNonUse API to extend liveness across overlapping access scopes.
1 parent 8577c6b commit 89140ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Utils/CanonicalizeOSSALifetime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ void CanonicalizeOSSALifetime::extendLivenessThroughOverlappingAccess() {
504504
break;
505505
}
506506
if (endsAccessOverlappingPrunedBoundary(&inst)) {
507-
liveness->updateForUse(&inst, /*lifetimeEnding*/ false);
507+
liveness->extendToNonUse(&inst);
508508
changed = true;
509509
break;
510510
}

0 commit comments

Comments
 (0)