Avoid doing the transformation c ? 1.0 : 2.0 as load { 2.0, 1.0 } + c*4
authorMon P Wang <wangmp@apple.com>
Sat, 14 Mar 2009 00:25:19 +0000 (00:25 +0000)
committerMon P Wang <wangmp@apple.com>
Sat, 14 Mar 2009 00:25:19 +0000 (00:25 +0000)
commit0b7a786842fd6601b99b1073e5393ebc928c1e6c
tree24a68edfba7fc0be6a5e1dc70e967140934d220c
parentd00d2feab2ddb3d0c89f6ca20c0a04216ddc77e9
Avoid doing the transformation c ? 1.0 : 2.0 as load { 2.0, 1.0 } + c*4
if FPConstant is legal because if the FPConstant doesn't need to be stored
in a constant pool, the transformation is unlikely to be profitable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66994 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp