summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-11-19 20:21:32 +0000
committerChris Lattner <sabre@nondot.org>2007-11-19 20:21:32 +0000
commit67d77945e71f79e7a2d361138bd45d025acd5036 (patch)
tree628a103a74d00bc1a7d3aa98a9205abd1e03a0c3
parente866e7b6fc210d41d610698139daff5b78753161 (diff)
downloadbcm5719-llvm-67d77945e71f79e7a2d361138bd45d025acd5036.tar.gz
bcm5719-llvm-67d77945e71f79e7a2d361138bd45d025acd5036.zip
Implement splitting of UNDEF nodes. This is the first step towards fixing PR1811
llvm-svn: 44239
-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 c6b4662b2b4..e343a0e5de5 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -6265,6 +6265,10 @@ void SelectionDAGLegalize::SplitVectorOp(SDOperand Op, SDOperand &Lo,
Node->dump(&DAG);
#endif
assert(0 && "Unhandled operation in SplitVectorOp!");
+ case ISD::UNDEF:
+ Lo = DAG.getNode(ISD::UNDEF, NewVT_Lo);
+ Hi = DAG.getNode(ISD::UNDEF, NewVT_Hi);
+ break;
case ISD::BUILD_PAIR:
Lo = Node->getOperand(0);
Hi = Node->getOperand(1);
OpenPOWER on IntegriCloud