[llvm] [VPlan] Run removeDeadRecipes early. (PR #190191)

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


================
@@ -8182,6 +8183,10 @@ VPlanPtr LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(
                    Range);
   }
 
+  // Ensure scalar VF plans only contain VF=1, as required by hasScalarVFOnly.
+  if (Range.Start.isScalar())
+    Range.End = Range.Start * 2;
----------------
fhahn wrote:

Most changes (VPWidenCanonicalIV instead of VPWidenIntOrFpInduction) should be gone now

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


More information about the llvm-commits mailing list