SelectionDAG: Allow promotion of SELECT nodes from float to int types
authorTom Stellard <thomas.stellard@amd.com>
Mon, 24 Mar 2014 16:07:28 +0000 (16:07 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 24 Mar 2014 16:07:28 +0000 (16:07 +0000)
commitb15ac1b99bfeaea1e1f01fa50240282dfffcc05d
tree2f6ba3222ae4aa9253747a6f821c489cc402db74
parent9958475129a26624dbba18781bb9efa4cf5549a1
SelectionDAG: Allow promotion of SELECT nodes from float to int types

And vice-versa, as long as the types are the same width.

There are a few R600 tests that will cover this.

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