[llvm] [LV] Convert gather loads with constant stride into strided loads (PR #147297)

Mel Chen via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 9 21:03:10 PST 2026


================
@@ -5389,3 +5407,197 @@ void VPlanTransforms::addExitUsersForFirstOrderRecurrences(VPlan &Plan,
     }
   }
 }
+
+static std::pair<VPValue *, VPValue *> matchStridedStart(VPValue *CurIndex) {
+  // TODO: Support VPWidenPointerInductionRecipe.
+  if (auto *WidenIV = dyn_cast<VPWidenIntOrFpInductionRecipe>(CurIndex))
+    return {WidenIV, WidenIV->getStepValue()};
----------------
Mel-Chen wrote:

I’m not entirely sure I understand the question. Since this code has already been removed, does the problem still still exist?

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


More information about the llvm-commits mailing list