R600/SI: Fix using mad with multiplies by 2
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 29 Sep 2014 14:59:34 +0000 (14:59 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 29 Sep 2014 14:59:34 +0000 (14:59 +0000)
commita5f45d5444fc0768e8832b447ac1f23330d790cc
treecea9f617b13953dcb1b8c0f0d92c3c4fa983613e
parentea64dce261cc35e76555111f58af91339502fbd0
R600/SI: Fix using mad with multiplies by 2

These turn into fadds, so combine them into the target
mad node.

fadd (fadd (a, a), b) -> mad 2.0, a, b

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218608 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/SIISelLowering.cpp
test/CodeGen/R600/fmuladd.ll