[llvm] [LV] Support tail-folded epilogue loops (PR #208764)
Hassnaa Hamdi via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 9 07:53:00 PDT 2026
================
@@ -3352,6 +3359,85 @@ static bool hasFindLastReductionPhi(VPlan &Plan) {
RedPhi->getRecurrenceKind());
});
}
+/// Determine how to lower the epilogue for the vector epilogue loop.
+/// Check if there are any conflicts that prevent tail-folding the epilogue.
+/// \return CM_EpilogueNotNeededFoldTail if epilogue tail-folding is possible,
+/// otherwise CM_EpilogueAllowed.
+static EpilogueLowering
+getEpilogueTailLowering(const LoopVectorizationCostModel &MainCM, const Loop *L,
----------------
hassnaaHamdi wrote:
OKay.
https://github.com/llvm/llvm-project/pull/208764
More information about the llvm-commits
mailing list