[llvm] [VPlan] Unify inner and outer loop paths (NFCI). (PR #192868)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 30 03:36:15 PDT 2026


================
@@ -6153,6 +6139,15 @@ LoopVectorizationPlanner::computeBestVF() {
     return {VectorizationFactor::Disabled(), nullptr};
   // If there is a single VPlan with a single VF, return it directly.
   VPlan &FirstPlan = *VPlans[0];
+
+  // For outer loops, the plan has a single vector VF determined by the
+  // heuristic.
+  if (!OrigLoop->isInnermost()) {
----------------
fhahn wrote:

Merged, thanks

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


More information about the llvm-commits mailing list