[llvm] [Transforms][Utils] Add LoopSplitUtils for iteration-space loop splitting (PR #205995)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 15 02:50:49 PDT 2026


================

----------------
artagnon wrote:

```suggestion
      for (Use &U : EV.Def->uses())
        if (auto *User = dyn_cast<Instruction>(U.getUser()))
          if (!L->contains(User))
            Updater.RewriteUse(U);
```

If there is some iterator-invalidation issue, could use make_early_inc_range or to_vector?

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


More information about the llvm-commits mailing list