mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-22 13:29:44 +00:00
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
This commit is contained in:
parent
9958475129
commit
b15ac1b99b
@ -3990,7 +3990,8 @@ void SelectionDAGLegalize::PromoteNode(SDNode *Node) {
|
||||
}
|
||||
case ISD::SELECT: {
|
||||
unsigned ExtOp, TruncOp;
|
||||
if (Node->getValueType(0).isVector()) {
|
||||
if (Node->getValueType(0).isVector() ||
|
||||
Node->getValueType(0).getSizeInBits() == NVT.getSizeInBits()) {
|
||||
ExtOp = ISD::BITCAST;
|
||||
TruncOp = ISD::BITCAST;
|
||||
} else if (Node->getValueType(0).isInteger()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user