Only do fmul (fadd x, x), c combine if the fadd only has one use
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 17 Jul 2015 01:14:35 +0000 (01:14 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 17 Jul 2015 01:14:35 +0000 (01:14 +0000)
commitcabe02e14110526189a0935d172f8547f0232572
treeadd132accc8233b4ab9384704ea599d531240f68
parentd07f7550a9f699927c93e0eb9a4f03b72cbd9bdd
Only do fmul (fadd x, x), c combine if the fadd only has one use

This was increasing the instruction count if the fadd has multiple uses.

llvm-svn: 242498
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/AMDGPU/fmul-2-combine-multi-use.ll [new file with mode: 0644]