[llvm] [LV] Add -predicated-epilogue option for tail-folded epilogue (PR #190697)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 17 02:18:38 PDT 2026
================
@@ -8298,6 +8315,47 @@ getEpilogueLowering(Function *F, Loop *L, LoopVectorizeHints &Hints,
return CM_EpilogueAllowed;
}
+/// Check if we can apply tail folding to the vectorized epilogue loop,
+/// enabling an unpredicated main vector loop with a tail-folded epilogue
+/// vector loop.
+static bool isEpilogueTailFoldingAllowed(const LoopVectorizationCostModel &CM,
----------------
fhahn wrote:
I am not sure why we would need to check this early? When it comes the vectorizing the epilogue, we already check for unsupported patterns directly in the VPlan.
https://github.com/llvm/llvm-project/pull/190697
More information about the llvm-commits
mailing list