[llvm] [LV] codegen for tail-folded epilogue loop (PR #208764)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 10 23:17:26 PDT 2026


================
@@ -8037,15 +8185,21 @@ bool LoopVectorizePass::processLoop(Loop *L) {
                                Hints, ORE);
 
   EpilogueLowering EpilogueTailLoweringStatus =
-      getEpilogueTailLowering(CM, L, ORE);
+      getEpilogueTailLowering(CM, L, ORE, LVL, Hints);
+  bool IsEpilogueTFEnabled = false;
+  std::optional<InterleavedAccessInfo> TailFoldingCMIAI;
+  std::optional<LoopVectorizationCostModel> EpilogueTailFoldingCM;
----------------
fhahn wrote:

AFAICT it looks like a lot of places would not need the epilogue tail-folding cost model, at least for this change. it may be that we are missing test coverage, if so it would be good to add, but ideally we would only need to have the epilogue tail-folding cost model when building the VPlans.

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


More information about the llvm-commits mailing list