[PATCH] D108619: [DAGCombine] Allow FMA combine with both FMA and FMAC

Carl Ritson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 24 01:44:28 PDT 2021


critson created this revision.
critson added reviewers: spatel, lebedev.ri, craig.topper, efriedma, RKSimon, foad.
Herald added subscribers: ecnelises, kerbowa, hiraditya, nhaehnle, jvesely.
critson requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Without this change only the preferred fusion opcode is tested
when attempting to combine FMA operations.
If both FMA and FMAC are available then FMA ops formed prior to
legalization will not be merged post legalization as FMAC becomes
the preferred fusion opcode.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108619

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/AMDGPU/dagcombine-fma-fmad.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108619.368303.patch
Type: text/x-patch
Size: 15651 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210824/b91889c5/attachment.bin>


More information about the llvm-commits mailing list