[ISel] Enable generating more fma instructions.
authorThomas Symalla <thomas.symalla@amd.com>
Fri, 26 Aug 2022 07:14:10 +0000 (09:14 +0200)
committerThomas Symalla <github@thomassymalla.de>
Wed, 21 Sep 2022 10:03:11 +0000 (12:03 +0200)
commitc98a46fee6f4043276eac19050979ce539e0d737
tree0ccd8661fa2e0dcad3c1450cb3d1e069239f049a
parent4f78e022ee3d437f8aefc4d7adb8abe7bb33b9ac
[ISel] Enable generating more fma instructions.

This patch changes a FADD / FMUL => FMA ISel pattern implemented
in D80801 so that it peeks through more than one FMA.

Reviewed By: foad

Differential Revision: https://reviews.llvm.org/D132837
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/AMDGPU/dagcombine-fma-fmad.ll