[PATCH] D95404: [RISCV] Adjust RISCVInstrInfoVSDPatterns.td for different pseudo instructions for different FPR.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 25 15:36:45 PST 2021


craig.topper created this revision.
craig.topper added reviewers: HsiangKai, frasercrmck, evandro, rogfer01.
Herald added subscribers: NickHung, luismarques, apazos, sameer.abuasal, pzheng, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, edward-jones, zzheng, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
craig.topper requested review of this revision.
Herald added a subscriber: MaskRay.
Herald added a project: LLVM.

Move the Suffix string into the VTypeInfo class so we don't need a helper class to get to it.

      

Adjust pseudo naming scheme for FPRs to put F16 <https://reviews.llvm.org/F16>/F32 <https://reviews.llvm.org/F32>/F64 <https://reviews.llvm.org/F64> in
place of F in the pseudo instruction name rather than as a suffix.
This avoids special cases like VFMERGE from the original patch.


https://reviews.llvm.org/D95404

Files:
  llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
  llvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td
  llvm/test/CodeGen/RISCV/rvv/extractelt-fp-rv32.ll
  llvm/test/CodeGen/RISCV/rvv/extractelt-fp-rv64.ll
  llvm/test/CodeGen/RISCV/rvv/insertelt-fp-rv32.ll
  llvm/test/CodeGen/RISCV/rvv/insertelt-fp-rv64.ll
  llvm/test/CodeGen/RISCV/rvv/setcc-fp-rv32.ll
  llvm/test/CodeGen/RISCV/rvv/setcc-fp-rv64.ll
  llvm/test/CodeGen/RISCV/rvv/vfadd-sdnode-rv32.ll
  llvm/test/CodeGen/RISCV/rvv/vfadd-sdnode-rv64.ll
  llvm/test/CodeGen/RISCV/rvv/vfdiv-sdnode-rv32.ll
  llvm/test/CodeGen/RISCV/rvv/vfdiv-sdnode-rv64.ll
  llvm/test/CodeGen/RISCV/rvv/vfmul-sdnode-rv32.ll
  llvm/test/CodeGen/RISCV/rvv/vfmul-sdnode-rv64.ll
  llvm/test/CodeGen/RISCV/rvv/vfsub-sdnode-rv32.ll
  llvm/test/CodeGen/RISCV/rvv/vfsub-sdnode-rv64.ll
  llvm/test/CodeGen/RISCV/rvv/vselect-fp-rv32.ll
  llvm/test/CodeGen/RISCV/rvv/vselect-fp-rv64.ll
  llvm/test/CodeGen/RISCV/rvv/vsplats-fp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95404.319146.patch
Type: text/x-patch
Size: 100836 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210125/3a7c8644/attachment-0001.bin>


More information about the llvm-commits mailing list