[PATCH] D134755: [RISCV] Extend strided load/store pattern matching to non-loop cases

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 27 11:40:30 PDT 2022


reames created this revision.
reames added reviewers: craig.topper, asb.
Herald added subscribers: sunshaoce, VincentWu, StephenFan, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, bollu, simoncook, johnrusso, rbar, hiraditya, arichardson, mcrosier.
Herald added a project: All.
reames requested review of this revision.
Herald added subscribers: pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

The motivation here is to enable a change I'm exploring in vectorizer to prefer base + offset_vector addressing for scatter/gather.  The form the vectorizer would end up emitting would be a gep whose vector operand is an add of the scalar IV (splated) and the index vector.  This change makes sure we can recognize that pattern as well as the current code structure.  As a side effect, it might improve scatter/gathers from other sources.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134755

Files:
  llvm/lib/Target/RISCV/RISCVGatherScatterLowering.cpp
  llvm/test/CodeGen/RISCV/rvv/mscatter-combine.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134755.463291.patch
Type: text/x-patch
Size: 4330 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220927/52b28701/attachment.bin>


More information about the llvm-commits mailing list