mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 13:46:13 +00:00
Implement expand support for MERGE_VALUEs that only produces one result.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44304 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ffc04d3e4f
commit
c58d558a79
@ -5401,6 +5401,10 @@ void SelectionDAGLegalize::ExpandOp(SDOperand Op, SDOperand &Lo, SDOperand &Hi){
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case ISD::MERGE_VALUES:
|
case ISD::MERGE_VALUES:
|
||||||
|
if (Node->getNumValues() == 1) {
|
||||||
|
ExpandOp(Op.getOperand(0), Lo, Hi);
|
||||||
|
break;
|
||||||
|
}
|
||||||
// FIXME: For now only expand i64,chain = MERGE_VALUES (x, y)
|
// FIXME: For now only expand i64,chain = MERGE_VALUES (x, y)
|
||||||
assert(Op.ResNo == 0 && Node->getNumValues() == 2 &&
|
assert(Op.ResNo == 0 && Node->getNumValues() == 2 &&
|
||||||
Op.getValue(1).getValueType() == MVT::Other &&
|
Op.getValue(1).getValueType() == MVT::Other &&
|
||||||
|
Loading…
Reference in New Issue
Block a user