[llvm] 2f3e86b - [DSE,MSSA] Continue checking more remaining candidates with dbgcnt.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 26 09:23:29 PDT 2020
Author: Florian Hahn
Date: 2020-04-26T16:59:32+01:00
New Revision: 2f3e86b31818222a0ab87c4114215e86b89c9dfc
URL: https://github.com/llvm/llvm-project/commit/2f3e86b31818222a0ab87c4114215e86b89c9dfc
DIFF: https://github.com/llvm/llvm-project/commit/2f3e86b31818222a0ab87c4114215e86b89c9dfc.diff
LOG: [DSE,MSSA] Continue checking more remaining candidates with dbgcnt.
After changing the candidate iteration strategy, we should continue with
the next candidate, rather than breaking out of the loop.
Added:
Modified:
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
index 1c5326ef7f98..8252ff5e7166 100644
--- a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
@@ -1929,7 +1929,7 @@ bool eliminateDeadStoresMemorySSA(Function &F, AliasAnalysis &AA,
}
if (!DebugCounter::shouldExecute(MemorySSACounter))
- break;
+ continue;
// Check if NI overwrites SI.
int64_t InstWriteOffset, DepWriteOffset;
More information about the llvm-commits
mailing list