[llvm] [VPlan] Update getBestPlan to return VF, use also for epilogue vec. (PR #98821)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 26 04:22:07 PDT 2024
================
@@ -9985,15 +9983,20 @@ bool LoopVectorizePass::processLoop(Loop *L) {
} else {
// If we decided that it is *legal* to vectorize the loop, then do it.
+ ElementCount BestVF = LVP.getBestVF();
+ VPlan &BestPlan = LVP.getBestPlanFor(BestVF);
----------------
fhahn wrote:
The epilogue code now also uses the fetched plan here to be duplicated for the main loop, so I retained it here, as it shared by both sides of the if
https://github.com/llvm/llvm-project/pull/98821
More information about the llvm-commits
mailing list