Skip to content

Commit 9073eea

Browse files
authored
Merge pull request swiftlang#30441 from zoecarver/fix/mand-combine-made-change
2 parents d62b070 + 9be29ba commit 9073eea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/SILOptimizer/Mandatory/MandatoryCombine.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,12 @@ bool MandatoryCombiner::doOneIteration(SILFunction &function,
199199
instructionDescription
200200
#endif
201201
);
202+
madeChange = true;
202203
}
203204

204205
for (SILInstruction *instruction : instructionsPendingDeletion) {
205206
worklist.eraseInstFromFunction(*instruction);
207+
madeChange = true;
206208
}
207209
instructionsPendingDeletion.clear();
208210

@@ -214,6 +216,7 @@ bool MandatoryCombiner::doOneIteration(SILFunction &function,
214216
LLVM_DEBUG(llvm::dbgs() << "MC: add " << *instruction
215217
<< " from tracking list to worklist\n");
216218
worklist.add(instruction);
219+
madeChange = true;
217220
}
218221
createdInstructions.clear();
219222
}

0 commit comments

Comments
 (0)