[PATCH] D126273: [DAGCombiner][VP] Add DAGCombine for merging VP_FADD and VP_FMUL to VP_FMA.

Yeting Kuo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 23 21:24:26 PDT 2022


fakepaper56 created this revision.
fakepaper56 added reviewers: craig.topper, frasercrmck, RKSimon, simoll.
Herald added subscribers: luke957, StephenFan, ecnelises, luismarques, apazos, sameer.abuasal, steven.zhang, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
Herald added a project: All.
fakepaper56 requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, MaskRay.
Herald added a project: LLVM.

The patch does two DAGcombines:
fold (vp_fadd a, (vp_mul b, c)) to (vp_fma b, c, a)
fold (vp_fadd (vp_mul a, b), c) to (vp_fma a, b, c)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D126273

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/RISCV/rvv/fold-fadd-and-fmul.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126273.431584.patch
Type: text/x-patch
Size: 4985 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220524/05c9f314/attachment-0001.bin>


More information about the llvm-commits mailing list