Author: lattner Date: Mon Nov 19 14:21:32 2007 New Revision: 44239 URL: http://llvm.org/viewvc/llvm-project?rev=44239&view=rev Log: Implement splitting of UNDEF nodes. This is the first step towards fixing PR1811
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp?rev=44239&r1=44238&r2=44239&view=diff ============================================================================== --- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp (original) +++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Mon Nov 19 14:21:32 2007 @@ -6265,6 +6265,10 @@ 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); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits