We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54f9cae commit 96321f8Copy full SHA for 96321f8
lib/SILOptimizer/Utils/CanonicalizeOSSALifetime.cpp
@@ -400,8 +400,7 @@ void CanonicalizeOSSALifetime::extendLivenessThroughOverlappingAccess() {
400
findLastConsume = !destroys.contains(&inst);
401
continue;
402
}
403
- // Stop at the latest use. An earlier end_access does not overlap.
404
- if (blockHasUse && liveness.isInterestingUser(&inst)) {
+ if (blockHasUse && liveness.isInterestingUser(&inst) != PrunedLiveness::NonUser) {
405
break;
406
407
if (endsAccessOverlappingPrunedBoundary(&inst)) {
0 commit comments