[PATCH] D142102: [RISCV] Combine FP_TO_INT to vfwcvt/fvncvt

Luke Lau via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 19 03:37:02 PST 2023


luke created this revision.
luke added reviewers: fakepaper56, craig.topper, reames, frasercrmck.
Herald added subscribers: pmatos, VincentWu, vkmr, evandro, 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.
luke requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

Adds new pseudo instructions to make sure that the fcvt instructions
have all rounding mode (RM) and unsigned (XU) variants across
single-width, widening and narrowing conversions.
And likewise, extends the VL patterns to accompany them. We don't add
new VL nodes for the widening/narrowing conversions though, instead we
just add specific patterns for vfcvts on those wider/narrower types.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142102

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVISelLowering.h
  llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
  llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
  llvm/test/CodeGen/RISCV/rvv/double-round-conv.ll
  llvm/test/CodeGen/RISCV/rvv/float-round-conv.ll
  llvm/test/CodeGen/RISCV/rvv/half-round-conv.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142102.490446.patch
Type: text/x-patch
Size: 84853 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230119/fecb1c3a/attachment-0001.bin>


More information about the llvm-commits mailing list