[llvm] [LV][EVL] Generate negative strided load/store for reversed load/store (PR #123608)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 21 04:29:49 PST 2025


================
@@ -2675,9 +2681,9 @@ InstructionCost VPWidenLoadEVLRecipe::computeCost(ElementCount VF,
   if (!Reverse)
     return Cost;
----------------
alexey-bataev wrote:

```suggestion
  if (!Reverse)
    return Ctx.TTI.getMaskedMemoryOpCost(
      Ingredient.getOpcode(), Ty, Alignment, AS, Ctx.CostKind);
```


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


More information about the llvm-commits mailing list