[llvm] [LoopUnrollAndJam] Fix out-of-date LoopInfo being used during unroll and jam (PR #191250)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 9 18:17:03 PDT 2026


================
@@ -115,6 +115,7 @@ LLVM_ABI void simplifyLoopAfterUnroll(Loop *L, bool SimplifyIVs, LoopInfo *LI,
                                       ScalarEvolution *SE, DominatorTree *DT,
                                       AssumptionCache *AC,
                                       const TargetTransformInfo *TTI,
+                                      std::vector<BasicBlock *> &&Blocks,
----------------
efriedma-quic wrote:

Oh, also, please make this an `ArrayRef<BasicBlock *>` to avoid unnecessary copies.

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


More information about the llvm-commits mailing list