[PATCH] D153358: [RISCV] Fold vmv.v.v across different subregister classes

Luke Lau via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 20 07:59:15 PDT 2023


luke created this revision.
luke added reviewers: craig.topper, reames, arcbbb, fakepaper56, frasercrmck, kito-cheng.
Herald added subscribers: jobnoorman, asb, 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, wangpc, eopXD, MaskRay.
Herald added a project: LLVM.

A common pattern is that a vector op will be copied into a smaller subregister
class and then inserted into another vector with vmv.v.v.  This extends the
vmv.v.v combine to handle such cases by peeking through the COPY_TO_REGCLASS
nodes and updating the result type.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D153358

Files:
  llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-calling-conv.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-extload-truncstore.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-extract-subvector.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fp-setcc.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-insert-subvector-shuffle.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-insert-subvector.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-mask-splat.ll
  llvm/test/CodeGen/RISCV/rvv/insert-subvector.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153358.532939.patch
Type: text/x-patch
Size: 37925 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230620/daea9037/attachment-0001.bin>


More information about the llvm-commits mailing list