summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-11-24 19:12:15 +0000
committerChris Lattner <sabre@nondot.org>2007-11-24 19:12:15 +0000
commitcab915f9cfca566191f9d07afac45f41c6384f7d (patch)
tree97b118aab0727bea898110bbf4830c6f8cedea32 /llvm/lib/CodeGen
parent6a49593aa5e63df882f60496f45f834b9ede4a85 (diff)
downloadbcm5719-llvm-cab915f9cfca566191f9d07afac45f41c6384f7d.tar.gz
bcm5719-llvm-cab915f9cfca566191f9d07afac45f41c6384f7d.zip
Implement expand support for MERGE_VALUEs that only produces one result.
llvm-svn: 44304
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index aa8ffaae071..30b55156c26 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -5401,6 +5401,10 @@ void SelectionDAGLegalize::ExpandOp(SDOperand Op, SDOperand &Lo, SDOperand &Hi){
break;
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)
assert(Op.ResNo == 0 && Node->getNumValues() == 2 &&
Op.getValue(1).getValueType() == MVT::Other &&
OpenPOWER on IntegriCloud