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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 17 03:32:49 PDT 2024


================
@@ -9406,7 +9405,14 @@ static Instruction *lowerLoadUsingVectorIntrinsics(IRBuilderBase &Builder,
   }
   Call->addParamAttr(
       0, Attribute::getWithAlignment(Call->getContext(), Alignment));
-  return Call;
+  Instruction *Res = Call;
+  if (IsReverse) {
+    Value *BlockInMaskPart = Builder.getAllOnesMask(DataTy->getElementCount());
----------------
fhahn wrote:

Would be good to clarify the name here, the variable is not really for the block-in mask and independent of a part.

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


More information about the llvm-commits mailing list