[PATCH] D137931: [RISCV] Don't use zero-stride vector load for gather if not optimized

Wang Pengcheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 14 03:29:37 PST 2022


pcwang-thead created this revision.
pcwang-thead added reviewers: reames, craig.topper.
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, simoncook, johnrusso, rbar, asb, hiraditya, arichardson.
Herald added a project: All.
pcwang-thead requested review of this revision.
Herald added subscribers: llvm-commits, eopXD, MaskRay.
Herald added a project: LLVM.

We may form a zero-stride vector load when lowering gather to strided
load. As what D137699 <https://reviews.llvm.org/D137699> has done, we use `load+splat` for this form if
there is no optimized implementation.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137931

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137931.475095.patch
Type: text/x-patch
Size: 6873 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221114/5ccd8536/attachment.bin>


More information about the llvm-commits mailing list