[llvm] [LV][EVL]Support reversed loads/stores. (PR #88025)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 19 06:31:32 PDT 2024
================
@@ -9382,9 +9373,19 @@ 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)
- : Mask = Builder.CreateVectorSplat(State.VF, Builder.getTrue());
+ Value *Mask = getMask()
+ ? State.get(getMask(), 0)
+ : Builder.CreateVectorSplat(State.VF, Builder.getTrue());
+ if (isReverse() && getMask()) {
+ VectorType *MaskTy = cast<VectorType>(Mask->getType());
----------------
fhahn wrote:
>From looking at the test changes, it seems like this patch may not be covered?
https://github.com/llvm/llvm-project/pull/88025
More information about the llvm-commits
mailing list