[PATCH] D159368: [WIP][RISCV] Remove SEW operand for SEW-aware pseudos

Wang Pengcheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 1 10:32:03 PDT 2023


wangpc created this revision.
wangpc added reviewers: reames, michaelmaitland, craig.topper, luke.
Herald added subscribers: jobnoorman, sunshaoce, VincentWu, vkmr, frasercrmck, 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.
wangpc requested review of this revision.
Herald added subscribers: llvm-commits, eopXD, MaskRay.
Herald added a project: LLVM.

We can remove the SEW operand and get the SEW value
by searching `RISCVVPseudosTable` (or encoding it in
TSFlags by using 2 bits).

The MatcherTable in `RISCVGenDAGISel` and generated
`RISCVGenInstrInfo` have some reductions. But it will
also add some complexities and make the RVV pseudos
inconsistent.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D159368

Files:
  llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h
  llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
  llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
  llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
  llvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td
  llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
  llvm/test/CodeGen/RISCV/rvv/rvv-peephole-vmerge-vops.ll
  llvm/test/CodeGen/RISCV/rvv/vsetvli-insert-crossbb.mir
  llvm/test/CodeGen/RISCV/rvv/vsetvli-insert.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159368.555435.patch
Type: text/x-patch
Size: 82642 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230901/4e6c9e35/attachment.bin>


More information about the llvm-commits mailing list