[llvm] [RISCV] Match constant indices of non-index type when forming strided ops (PR #65777)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 16 13:54:56 PDT 2023


================
@@ -363,14 +363,15 @@ RISCVGatherScatterLowering::determineBaseAndStride(GetElementPtrInst *GEP,
   if (!VecOperand)
     return std::make_pair(nullptr, nullptr);
 
-  // We can't extract the stride if the arithmetic is done at a different size
-  // than the pointer type. Adding the stride later may not wrap correctly.
-  // Technically we could handle wider indices, but I don't expect that in
-  // practice.
+  // We need the number of significant bits to match the index type.  IF it
----------------
topperc wrote:

Capital F in IF

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


More information about the llvm-commits mailing list