[PATCH] D120287: [RISCV] Add isel patterns for masked RISCVISD::FMA_VL with RISCVISD::FNEG_VL.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 21 15:40:13 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, 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 subscribers: pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.
This helps us form vfnmsub, vfnmadd, and vfmusb from masked VP
intrinsics.
I've used "srcvalue" for the mask parameter in the fneg nodes. We
can't match "V0" because that doesn't sure the mask the is the same.
Instead it matches two different nodes and generates two copies to
V0 of those separate values.
If we don't think srcvalue is ok, we'll need to change to true_mask
or use C++ code to match.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D120287
Files:
llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
llvm/test/CodeGen/RISCV/rvv/vfma-vp.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120287.410409.patch
Type: text/x-patch
Size: 443607 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220221/8b98050f/attachment-0001.bin>
More information about the llvm-commits
mailing list