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

Mel Chen via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 5 01:48:11 PDT 2026


================
@@ -2389,10 +2392,15 @@ InstructionCost VPWidenMemIntrinsicRecipe::computeMemIntrinsicCost(
 InstructionCost
 VPWidenMemIntrinsicRecipe::computeCost(ElementCount VF,
                                        VPCostContext &Ctx) const {
-  Type *Ty = toVectorTy(getScalarType(), VF);
+  Type *DataTy = getScalarType();
+  if (DataTy->isVoidTy())
+    DataTy = getOperand(0)->getScalarType();
----------------
Mel-Chen wrote:

fccbd34c36ccb2d61b34ca311abab993d7e25a46

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


More information about the llvm-commits mailing list