ISD::UNDEF should be expanded recursively / iteratively.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52508 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2008-06-19 22:01:11 +00:00
parent aa0b63422a
commit c8af52c898
2 changed files with 6 additions and 1 deletions

View File

@ -5832,7 +5832,6 @@ void SelectionDAGLegalize::ExpandOp(SDOperand Op, SDOperand &Lo, SDOperand &Hi){
Lo = ExpandEXTRACT_VECTOR_ELT(Op);
return ExpandOp(Lo, Lo, Hi);
case ISD::UNDEF:
NVT = TLI.getTypeToExpandTo(VT);
Lo = DAG.getNode(ISD::UNDEF, NVT);
Hi = DAG.getNode(ISD::UNDEF, NVT);
break;

View File

@ -0,0 +1,6 @@
; RUN: llvm-as < %s | llc -march=ppc32
define void @t() nounwind {
call void null( ppc_fp128 undef )
unreachable
}