From daf9bc8eee3eb1bc992480921f50ef1b760f4159 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 19 Nov 2007 20:21:32 +0000 Subject: [PATCH] Implement splitting of UNDEF nodes. This is the first step towards fixing PR1811 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44239 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index c6b4662b2b4..e343a0e5de5 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/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); -- 2.34.1