]> granicus.if.org Git - llvm/commit
DAGCombiner: Add hasOneUse checks to fadd/fma combine
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 11 Jan 2017 02:02:12 +0000 (02:02 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 11 Jan 2017 02:02:12 +0000 (02:02 +0000)
commita40945ed888a2baa2a5556198018b2787b87511e
tree89c4eb881d33c75d562046e66d69d846b00364ed
parentbdf370d28b60a2144e725ba7ccedc8205077c6d7
DAGCombiner: Add hasOneUse checks to fadd/fma combine

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291642 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/AMDGPU/fadd-fma-fmul-combine.ll [new file with mode: 0644]