[llvm] [VPlan] Move initial skeleton construction earlier (NFC). (PR #150848)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 4 12:49:53 PDT 2025


================
@@ -8945,10 +8947,14 @@ VPlanPtr LoopVectorizationPlanner::tryToBuildVPlan(VFRange &Range) {
   assert(EnableVPlanNativePath && "VPlan-native path is not enabled.");
 
   auto Plan = VPlanTransforms::buildPlainCFG(OrigLoop, *LI);
-  VPlanTransforms::prepareForVectorization(
-      *Plan, Legal->getWidestInductionType(), PSE, true, false, OrigLoop,
-      getDebugLocFromInstOrOperands(Legal->getPrimaryInduction()), false,
-      Range);
+
----------------
fhahn wrote:

combined into `buildVPlan0`, wdyt?

I tried to combine the comments as well as possibe

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


More information about the llvm-commits mailing list