[llvm] Reland "MTM: fix issues after cursory reading" (PR #101191)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 30 08:54:45 PDT 2024
================
@@ -546,7 +540,7 @@ MachineTraceMetrics::Ensemble::invalidate(const MachineBasicBlock *BadMBB) {
if (BadTBI.hasValidHeight()) {
BadTBI.invalidateHeight();
WorkList.push_back(BadMBB);
- do {
+ while (!WorkList.empty()) {
----------------
s-barannikov wrote:
No reason to change this either, especially when it is clear that the container is non-empty on entry.
https://github.com/llvm/llvm-project/pull/101191
More information about the llvm-commits
mailing list