[PATCH] D136738: [RISCV] Optimize i64 insertelt on RV32.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 25 22:52:29 PDT 2022


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

We can use tail undisturbed vslide1down to insert into the vector.

This should make D136640 <https://reviews.llvm.org/D136640> unneeded.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136738

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-bitcast.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fp-bitcast.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-unaligned.ll
  llvm/test/CodeGen/RISCV/rvv/insertelt-int-rv32.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136738.470716.patch
Type: text/x-patch
Size: 8093 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221026/31e7c2aa/attachment.bin>


More information about the llvm-commits mailing list