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

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 3 03:32:57 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;
----------------
david-arm wrote:

Just for clarity, do you mean resolve this in a pre-commit refactoring PR? Or do you plan to:

1. First change all the interfaces in this PR to accept an additional cost model (separate to the one in the planner).
2. Follow-up with a second PR to revert all the interfaces and remove the additional cost model parameter?

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


More information about the llvm-commits mailing list