[llvm] [RISCV] Allow non-loop invariant steps in RISCVGatherScatterLowering (PR #122244)
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 14 08:44:47 PST 2025
================
@@ -311,18 +307,31 @@ bool RISCVGatherScatterLowering::matchStridedRecurrence(Value *Index, Loop *L,
}
case Instruction::Mul: {
Start = Builder.CreateMul(Start, SplatOp, "start");
- Step = Builder.CreateMul(Step, SplatOp, "step");
----------------
preames wrote:
This block of code now entirely duplicates the end of matchStridedStart, maybe we can extract out a helper and use it in both places? This an idea, not a requirement.
https://github.com/llvm/llvm-project/pull/122244
More information about the llvm-commits
mailing list