File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
include/swift/SILOptimizer/Utils Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -325,10 +325,9 @@ class CanonicalizeOSSALifetime final {
325
325
liveness->initializeDef (getCurrentDef ());
326
326
}
327
327
328
- void invalidateLiveness () {
328
+ void clear () {
329
329
consumingBlocks.clear ();
330
330
debugValues.clear ();
331
- liveness->invalidate ();
332
331
discoveredBlocks.clear ();
333
332
}
334
333
Original file line number Diff line number Diff line change @@ -1108,7 +1108,7 @@ bool CanonicalizeOSSALifetime::computeLiveness() {
1108
1108
// Step 1: compute liveness
1109
1109
if (!computeCanonicalLiveness ()) {
1110
1110
LLVM_DEBUG (llvm::errs () << " Failed to compute canonical liveness?!\n " );
1111
- invalidateLiveness ();
1111
+ clear ();
1112
1112
return false ;
1113
1113
}
1114
1114
if (currentDef->isLexical ()) {
@@ -1145,7 +1145,7 @@ void CanonicalizeOSSALifetime::rewriteLifetimes() {
1145
1145
// Step 6: rewrite copies and delete extra destroys
1146
1146
rewriteCopies ();
1147
1147
1148
- invalidateLiveness ();
1148
+ clear ();
1149
1149
consumes.clear ();
1150
1150
}
1151
1151
You can’t perform that action at this time.
0 commit comments