[DAGCombiner] Use generalized pattern matcher in visitFMA to support vp.fma.
authorYeting Kuo <yeting.kuo@sifive.com>
Tue, 6 Jun 2023 08:55:27 +0000 (16:55 +0800)
committerYeting Kuo <yeting.kuo@sifive.com>
Thu, 8 Jun 2023 01:40:21 +0000 (09:40 +0800)
commit2fe2a6d4b8a4647e49d69a5ff7161946aeb7cee1
tree4da0cb1379a559c5f546c31ef3d394c717fe5630
parenta6bd2241b86148939db37d4a9427e0f0f876b501
[DAGCombiner] Use generalized pattern matcher in visitFMA to support vp.fma.

Note: Some patterns in visitFMA are needed refined to support splat of constant.

Reviewed By: luke

Differential Revision: https://reviews.llvm.org/D152260
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/test/CodeGen/RISCV/rvv/vfma-vp-combine.ll [new file with mode: 0644]