[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
Wed Jul 24 10:21:19 PDT 2024
================
@@ -10336,6 +10335,19 @@ bool LoopVectorizePass::processLoop(Loop *L) {
} else {
// If we decided that it is *legal* to vectorize the loop, then do it.
+ ElementCount Width = VF.Width;
+ std::optional<VPlan *> VPlanFromVPCost;
+ if (!UseLegacyCostModel) {
+ const auto &[VPWidth, Plan] = LVP.getBestPlan();
----------------
fhahn wrote:
I removed the temporary UseLegacyCostModel option now that we branched for 19.x, so this is now simpler again
https://github.com/llvm/llvm-project/pull/98821
More information about the llvm-commits
mailing list