[llvm] [RISCV] Support vp.{gather,scatter} in RISCVGatherScatterLowering (PR #122232)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 9 15:28:24 PST 2025
================
@@ -514,23 +551,28 @@ bool RISCVGatherScatterLowering::tryCreateStridedLoadStore(IntrinsicInst *II,
Builder.SetInsertPoint(II);
- Value *EVL = Builder.CreateElementCount(
- IntegerType::get(Ctx, 32), cast<VectorType>(DataType)->getElementCount());
+ if (!EVL)
+ EVL = Builder.CreateElementCount(
+ IntegerType::get(Ctx, 32),
----------------
topperc wrote:
Builder.getInt32Ty()
https://github.com/llvm/llvm-project/pull/122232
More information about the llvm-commits
mailing list