[llvm] [LV] Convert scatter stores with constant stride into strided stores (PR #206896)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 1 00:36:50 PDT 2026


================
@@ -7549,17 +7560,30 @@ void VPlanTransforms::convertToStridedAccesses(VPlan &Plan,
                                      m_SpecificLoop(&L))))
         continue;
 
-      Type *LoadTy = LoadR->getScalarType();
-      Align Alignment = LoadR->getAlign();
+      VPValue *StoredValue = nullptr;
+      Type *DataTy = nullptr;
----------------
lukel97 wrote:

Nit I think this can be left uninitialized
```suggestion
      Type *DataTy;
```

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


More information about the llvm-commits mailing list