[llvm] [LoopPeel] Implement initial peeling off the last loop iteration. (PR #139551)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Mon May 12 11:46:28 PDT 2025
================
@@ -22,10 +22,13 @@ namespace llvm {
bool canPeel(const Loop *L);
/// VMap is the value-map that maps instructions from the original loop to
-/// instructions in the last peeled-off iteration.
-bool peelLoop(Loop *L, unsigned PeelCount, LoopInfo *LI, ScalarEvolution *SE,
- DominatorTree &DT, AssumptionCache *AC, bool PreserveLCSSA,
- ValueToValueMapTy &VMap);
+/// instructions in the last peeled-off iteration. If \p PeelLast is true, peel
+/// off the last \p PeelCount iterations from \p L. In that case, the caller has
----------------
efriedma-quic wrote:
Probably should say what happens if PeelLast is false.
Is "at least 2 iterations" still correct if PeelCount isn't 1?
https://github.com/llvm/llvm-project/pull/139551
More information about the llvm-commits
mailing list