[llvm] [LV] Support tail-folded epilogue loops (PR #208764)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 7 05:51:16 PDT 2026
================
@@ -856,6 +856,10 @@ class LoopVectorizationPlanner {
/// The profitability analysis.
LoopVectorizationCostModel &CM;
+ /// The profitability analysis for epilogue tail-folding.
+ /// Cleared after making cost based decisions.
+ std::unique_ptr<LoopVectorizationCostModel> EpilogueTfCM;
----------------
fhahn wrote:
What I meant is that it now is only used in `bool LoopVectorizationPlanner::planForEpilogueTF() {` to pass further down. So it seems that could also be done by just constructing it in `planForEpilogueTF`?
https://github.com/llvm/llvm-project/pull/208764
More information about the llvm-commits
mailing list