[llvm] [LoopPeel] Peel last iteration to enable load widening (PR #173420)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 12 03:28:50 PST 2026
================
@@ -890,6 +1049,76 @@ void llvm::computePeelCount(Loop *L, unsigned LoopSize,
}
}
+bool llvm::widenLoadsAfterPeel(Loop &L, ScalarEvolution &SE,
+ const DataLayout &DL,
+ const TargetTransformInfo &TTI,
+ DominatorTree &DT) {
+ BasicBlock *Latch = L.getLoopLatch();
+ if (!Latch)
+ return false;
----------------
fhahn wrote:
can we assert? earlier checks should guarantee this
https://github.com/llvm/llvm-project/pull/173420
More information about the llvm-commits
mailing list