[llvm] [SimplifyIndVar] Push more users to worklist for simplifyUsers (PR #93598)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 24 02:33:28 PDT 2024


================
@@ -854,16 +861,23 @@ static void pushIVUsers(
     if (UI == Def)
       continue;
 
-    // Only change the current Loop, do not change the other parts (e.g. other
-    // Loops).
-    if (!L->contains(UI))
+    // Avoid adding Defs that SCEV expand to themselves, e.g. the LoopPhis
+    // of the outter loops.
----------------
nikic wrote:

```suggestion
    // of the outer loops.
```

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


More information about the llvm-commits mailing list