[PATCH] D133238: [RISCV] Improve vector fceil/ffloor lowering by changing FRM.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 2 15:24:32 PDT 2022


craig.topper created this revision.
craig.topper added reviewers: reames, arcbbb.
Herald added subscribers: sunshaoce, VincentWu, luke957, StephenFan, vkmr, frasercrmck, 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.
craig.topper requested review of this revision.
Herald added subscribers: pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

This adds new VFCVT pseudoinstructions that take a rounding mode operand. A custom inserter is used to insert additional instructions to change FRM around the
VFCVT.

Some of this is borrowed from D122860 <https://reviews.llvm.org/D122860>, but takes a somewhat different direction. We may migrate to that patch, but for now I was trying to keep this as independent from 
RVV intrinsics as I could.

A followup patch will use this approach for FROUND too.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D133238

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVISelLowering.h
  llvm/lib/Target/RISCV/RISCVInstrInfo.td
  llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
  llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
  llvm/test/CodeGen/RISCV/rvv/fceil-sdnode.ll
  llvm/test/CodeGen/RISCV/rvv/ffloor-sdnode.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133238.457718.patch
Type: text/x-patch
Size: 51343 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220902/92260723/attachment.bin>


More information about the llvm-commits mailing list