From 2f3e86b31818222a0ab87c4114215e86b89c9dfc Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Thu, 23 Apr 2020 18:58:33 +0100 Subject: [PATCH] [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. --- llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;