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)
commitac69d5205bdc513c94068ecb49ecc0268e70015d
tree5c544554f6d7cff797fba36082925704e2d8ba94
parent7c91cefac54d45dbdf1f2f3793cdb3ba482d8963
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.

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