[PATCH] D151736: [RISCV] Lower inserts into identity shuffles as v{,f}slide1ups

Luke Lau via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 30 10:17:35 PDT 2023


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

Inserting an element at index 0, into a shuffle that's an identity shuffle past the first
element, can be achieved with a single v{,f}slide1up. This patch detects such shuffles with
the isIdentityMask logic and lowers it to said vslide1up.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D151736

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/test/CodeGen/RISCV/rvv/fixed-vector-shuffle-vslide1up.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151736.526702.patch
Type: text/x-patch
Size: 5029 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230530/b21c72e4/attachment.bin>


More information about the llvm-commits mailing list