[llvm] [LV] Use SCEVPatternMatch to improve code (NFC) (PR #154568)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 21 03:57:40 PDT 2025


================
@@ -8873,13 +8863,12 @@ VPlanPtr LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(
   };
   for (auto [_, Stride] : Legal->getLAI()->getSymbolicStrides()) {
     auto *StrideV = cast<SCEVUnknown>(Stride)->getValue();
-    auto *ScevStride = dyn_cast<SCEVConstant>(PSE.getSCEV(StrideV));
-    // Only handle constant strides for now.
-    if (!ScevStride)
+    const APInt *ScevStride;
----------------
fhahn wrote:

This is unrelated to the new matchers?

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


More information about the llvm-commits mailing list