[llvm] [VPlan] Implement VPlan-based unit-strideness speculation (PR #182595)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 24 04:49:09 PDT 2026


================
@@ -5453,6 +5458,10 @@ void VPlanTransforms::makeMemOpWideningDecisions(VPlan &Plan, VFRange &Range,
         });
   }
 
+  if (EnableVPlanBasedStrideMV && !CostCtx.Config.OptForSize)
+    RUN_VPLAN_PASS(VPlanTransforms::multiversionForUnitStridedMemOps, Plan,
----------------
fhahn wrote:

There's a limit for the number of SCEV predicates, which is checked in `finalizeSCEVPredicates`, but gets by-passed here. Is there a nice way to still consider the new predicates here

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


More information about the llvm-commits mailing list