[PATCH] D28332: DAGCombiner: Add hasOneUse checks to fadd/fma combine

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 4 15:23:14 PST 2017


arsenm created this revision.
arsenm added a reviewer: escha.
arsenm added a subscriber: llvm-commits.
Herald added a reviewer: tstellarAMD.
Herald added subscribers: nhaehnle, wdng.

Even with aggressive fusion enabled, this requires duplicating
the fmul, or increases an fadd to another fma which is not an
improvement.


https://reviews.llvm.org/D28332

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/AMDGPU/fadd-fma-fmul-combine.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28332.83152.patch
Type: text/x-patch
Size: 13051 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170104/e25c0a0e/attachment.bin>


More information about the llvm-commits mailing list