[PATCH] D115958: [RISCV] Teach RISCVGatherScatterLowering to handle more complex recurrence start values.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 17 11:36:19 PST 2021


craig.topper created this revision.
craig.topper added reviewers: frasercrmck, npanchen, rogfer01.
Herald added subscribers: VincentWu, luke957, achieveartificialintelligence, vkmr, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, edward-jones, zzheng, jrtc27, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
craig.topper requested review of this revision.
Herald added a subscriber: MaskRay.
Herald added a project: LLVM.

Previously we only recognized strided loads/store when the initial
value for the phi was a strided constant vector.

This patch extends the support to a strided_constant added to a
splatted value. The rewritten loop will add the splat value to the
first element of the strided constant vector to use as the scalar
start value. The stride is unaffected.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115958

Files:
  llvm/lib/Target/RISCV/RISCVGatherScatterLowering.cpp
  llvm/test/CodeGen/RISCV/rvv/fixed-vector-strided-load-store.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115958.395179.patch
Type: text/x-patch
Size: 11526 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211217/a7d8217e/attachment.bin>


More information about the llvm-commits mailing list