[llvm] [LV][EVL]Support reversed loads/stores. (PR #88025)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri May 3 01:44:58 PDT 2024


================
@@ -9401,9 +9401,15 @@ void VPWidenLoadEVLRecipe::execute(VPTransformState &State) {
   CallInst *NewLI;
   Value *EVL = State.get(getEVL(), VPIteration(0, 0));
   Value *Addr = State.get(getAddr(), 0, !CreateGather);
-  Value *Mask = getMask()
-                    ? State.get(getMask(), 0)
-                    : Builder.CreateVectorSplat(State.VF, Builder.getTrue());
+  Value *Mask = nullptr;
+  if (getMask()) {
----------------
fhahn wrote:

```suggestion
  if (VPValue *VPMask = getMask()) {
      Mask = State.get(VPMask, 0);
```

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


More information about the llvm-commits mailing list