[llvm-commits] [llvm] r52508 - in /llvm/trunk: lib/CodeGen/SelectionDAG/LegalizeDAG.cpp test/CodeGen/PowerPC/2008-06-19-LegalizerCrash.ll
Evan Cheng
evan.cheng at apple.com
Thu Jun 19 15:01:11 PDT 2008
Author: evancheng
Date: Thu Jun 19 17:01:11 2008
New Revision: 52508
URL: http://llvm.org/viewvc/llvm-project?rev=52508&view=rev
Log:
ISD::UNDEF should be expanded recursively / iteratively.
Added:
llvm/trunk/test/CodeGen/PowerPC/2008-06-19-LegalizerCrash.ll
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=52508&r1=52507&r2=52508&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Thu Jun 19 17:01:11 2008
@@ -5832,7 +5832,6 @@
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;
Added: llvm/trunk/test/CodeGen/PowerPC/2008-06-19-LegalizerCrash.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/2008-06-19-LegalizerCrash.ll?rev=52508&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/2008-06-19-LegalizerCrash.ll (added)
+++ llvm/trunk/test/CodeGen/PowerPC/2008-06-19-LegalizerCrash.ll Thu Jun 19 17:01:11 2008
@@ -0,0 +1,6 @@
+; RUN: llvm-as < %s | llc -march=ppc32
+
+define void @t() nounwind {
+ call void null( ppc_fp128 undef )
+ unreachable
+}
More information about the llvm-commits
mailing list