[PATCH] D117247: [RISCV] Add inline expansion for vector fround.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 13 13:17:42 PST 2022
craig.topper created this revision.
craig.topper added reviewers: frasercrmck, rogfer01, khchen, kito-cheng, arcbbb.
Herald added subscribers: VincentWu, luke957, achieveartificialintelligence, vkmr, evandro, luismarques, apazos, sameer.abuasal, pengfei, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
craig.topper requested review of this revision.
Herald added a subscriber: MaskRay.
Herald added a project: LLVM.
This avoids a crash for scalable vectors and or scalarization for
fixed vectors.
The algorithm is different enough that I don't think it makes sense
to merge with ceil/floor/trunc. Algorithm is adapted from gcc's X86
SSE2 output.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D117247
Files:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fp.ll
llvm/test/CodeGen/RISCV/rvv/fround-sdnode.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117247.399763.patch
Type: text/x-patch
Size: 20076 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220113/a84c2c53/attachment.bin>
More information about the llvm-commits
mailing list