mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 05:00:26 +00:00
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:
parent
aa0b63422a
commit
c8af52c898
@ -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;
|
||||
|
6
test/CodeGen/PowerPC/2008-06-19-LegalizerCrash.ll
Normal file
6
test/CodeGen/PowerPC/2008-06-19-LegalizerCrash.ll
Normal file
@ -0,0 +1,6 @@
|
||||
; RUN: llvm-as < %s | llc -march=ppc32
|
||||
|
||||
define void @t() nounwind {
|
||||
call void null( ppc_fp128 undef )
|
||||
unreachable
|
||||
}
|
Loading…
Reference in New Issue
Block a user