[PATCH] D146983: [RISCV] Handle non-recursive muls of strides in gather/scatter lowering

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 27 09:29:12 PDT 2023


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVGatherScatterLowering.cpp:177
+  // Add the splat value to the start
+  if (BO->getOpcode() == Instruction::Add)
+    Start = Builder.CreateAdd(Start, Splat);
----------------
Add curly braces for consistency with the Mul case.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146983/new/

https://reviews.llvm.org/D146983



More information about the llvm-commits mailing list