[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
Mon Jul 28 09:49:28 PDT 2025


================
@@ -0,0 +1,48 @@
+; REQUIRES: asserts
+; RUN: opt <%s -p "loop(loop-idiom)" -verify-scev -o /dev/null
----------------
sushgokh wrote:

unfortunately, if I remove the assert, the crash wont be produced and secondly, there is no difference in IR pre/post application of the patch.
So, I am not sure I understood correctly and how removing assert will help here

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


More information about the llvm-commits mailing list