[llvm] [loop-idiom] Forget outer loop scev when loop-idiom introduces memset… (PR #150916)

Sushant Gokhale via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 29 03:30:53 PDT 2025


================
@@ -1154,6 +1154,11 @@ bool LoopIdiomRecognize::processLoopStridedStore(
 
   NewCall->setDebugLoc(TheStore->getDebugLoc());
 
+  auto *MemsetLoop = LI->getLoopFor(NewCall->getParent());
+  // FIXME: We should invalidate scev only if the loop already does not have any
----------------
sushgokh wrote:

removed code.

https://github.com/llvm/llvm-project/pull/150916


More information about the llvm-commits mailing list