[llvm] [RISCV] Match strided vector bases in RISCVGatherScatterLowering (PR #93972)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Fri May 31 09:35:21 PDT 2024


================
@@ -349,6 +349,22 @@ RISCVGatherScatterLowering::determineBaseAndStride(Instruction *Ptr,
 
   SmallVector<Value *, 2> Ops(GEP->operands());
 
+  // If the base pointer is a vector, check if it's strided.
+  if (GEP->getPointerOperand()->getType()->isVectorTy()) {
+    auto [BaseBase, Stride] = determineBaseAndStride(
+        cast<Instruction>(GEP->getPointerOperand()), Builder);
----------------
lukel97 wrote:

Whoops, we didn't

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


More information about the llvm-commits mailing list