[llvm] [RISCV] Match strided vector bases in RISCVGatherScatterLowering (PR #93972)
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Fri May 31 10:11:59 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.
----------------
preames wrote:
Please move this down into the if (!ScalarBase) case below, we'd rather find a splatable base if possible.
Please perform the operand check before doing the recursive call. The unwind from the recursion may generate code.
https://github.com/llvm/llvm-project/pull/93972
More information about the llvm-commits
mailing list