mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
ISD::UNDEF should be expanded recursively / iteratively.
llvm-svn: 52508
This commit is contained in:
parent
c979fcf8ff
commit
4006f4cdf0
@ -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…
x
Reference in New Issue
Block a user