[DSE,MSSA] Continue checking more remaining candidates with dbgcnt.
authorFlorian Hahn <flo@fhahn.com>
Thu, 23 Apr 2020 17:58:33 +0000 (18:58 +0100)
committerFlorian Hahn <flo@fhahn.com>
Sun, 26 Apr 2020 15:59:32 +0000 (16:59 +0100)
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

index 1c5326e..8252ff5 100644 (file)
@@ -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;