[PATCH] D149821: [DAGCombiner] Use generalized pattern match for visitFSUBForFMACombine.

Yeting Kuo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 4 00:11:50 PDT 2023


fakepaper56 created this revision.
fakepaper56 added reviewers: craig.topper, reames, frasercrmck, rogfer01, luke.
Herald added subscribers: ecnelises, luismarques, apazos, sameer.abuasal, steven.zhang, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, 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 makes visitFSUBForFMACombine serve vp.fsub too. It helps DAGCombiner
to fuse vp.fsub and vp.fmul patterns to vp.fma.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149821

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149821.519367.patch
Type: text/x-patch
Size: 20776 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230504/041ba19f/attachment-0001.bin>


More information about the llvm-commits mailing list