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

via llvm-commits llvm-commits at lists.llvm.org
Fri May 3 04:41:53 PDT 2024


================
@@ -9419,11 +9424,10 @@ void VPWidenLoadEVLRecipe::execute(VPTransformState &State) {
       0, Attribute::getWithAlignment(NewLI->getContext(), Alignment));
   State.addMetadata(NewLI, LI);
   Instruction *Res = NewLI;
-  if (isReverse()) {
-    Res =
-        Builder.CreateIntrinsic(DataTy, Intrinsic::experimental_vp_reverse,
-                                {Res, AllTrueMask, EVL}, nullptr, "vp.reverse");
-  }
+  if (isReverse())
+    // Use cheap all-true mask for reverse rather than actual mask, it does not
+    // affect the result.
----------------
ayalz wrote:

```suggestion
```

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


More information about the llvm-commits mailing list