Fix interference caused by fmul 2, x -> fadd x, x
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 2 Sep 2014 19:02:53 +0000 (19:02 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 2 Sep 2014 19:02:53 +0000 (19:02 +0000)
commitf7a3c7e705cc000e15269fafa1b22a01a1fb93b3
tree05ec27328d8dba84dccc692acc1b9dae4ee0e801
parent9bf0327ea77669212b10325f934c6efe1d011f3e
Fix interference caused by fmul 2, x -> fadd x, x

If an fmul was introduced by lowering, it wouldn't be folded
into a multiply by a constant since the earlier combine would
have replaced the fmul with the fadd.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216932 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/R600/fmul.ll
test/CodeGen/R600/llvm.sin.ll