[llvm] [VPlan] Update getBestPlan to return VF, use also for epilogue vec. (PR #98821)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 24 12:26:53 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);
----------------
ayalz wrote:

```suggestion
```
better set closer to where its used below.

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


More information about the llvm-commits mailing list