[llvm] [LV] Return best plan directly from selectBestEpiloguePlan (NFC). (PR #190608)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 8 06:20:16 PDT 2026
================
@@ -4464,13 +4466,15 @@ VectorizationFactor LoopVectorizationPlanner::selectEpilogueVectorizationFactor(
auto SkipVF = [&](const SCEV *VF, const SCEV *RemIter) -> bool {
return SE.isKnownPredicate(CmpInst::ICMP_UGT, VF, RemIter);
};
+ VectorizationFactor Result = VectorizationFactor::Disabled();
+ VPlan *BestPlan = nullptr;
for (auto &NextVF : ProfitableVFs) {
// Skip candidate VFs without a corresponding VPlan.
if (!hasPlanWithVF(NextVF.Width))
continue;
- ElementCount EffectiveVF =
- GetEffectiveVF(getPlanFor(NextVF.Width), NextVF.Width);
+ VPlan &CurrentPlan = getPlanFor(NextVF.Width);
----------------
ayalz wrote:
```suggestion
VPlan &NextPlan = getPlanFor(NextVF.Width);
```
to be consistent with `NextVF`?
https://github.com/llvm/llvm-project/pull/190608
More information about the llvm-commits
mailing list