[llvm] [VPlan] Use wide IV if scalar lanes > 0 are used with scalable vectors. (PR #169796)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 1 06:37:44 PST 2025


================
@@ -794,12 +794,17 @@ static void legalizeAndOptimizeInductions(VPlan &Plan) {
         WideIV->getDebugLoc(), Builder);
 
     // Update scalar users of IV to use Step instead.
-    if (!HasOnlyVectorVFs)
+    if (!HasOnlyVectorVFs) {
----------------
fhahn wrote:

added thanks. If the plan contains the scalar VF, it should never include scalable VFs.

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


More information about the llvm-commits mailing list