summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-03-28 23:02:18 +0000
committerBill Wendling <isanbard@gmail.com>2011-03-28 23:02:18 +0000
commit96f962fdffab615f196ea6b66ea736ca2c601548 (patch)
treec841402eb745404978a043d54ce79b59d20d2c61 /llvm/test/CodeGen
parent67919b2a5b6d5e6a12ca71e2b24f2125fb7d63ff (diff)
downloadbcm5719-llvm-96f962fdffab615f196ea6b66ea736ca2c601548.tar.gz
bcm5719-llvm-96f962fdffab615f196ea6b66ea736ca2c601548.zip
In some cases, the "fail BB dominator" may be null after the BB was split (and
becomes reachable when before it wasn't). Check to make sure that it's not null before trying to use it. llvm-svn: 128434
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/X86/crash.ll18
1 files changed, 17 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/crash.ll b/llvm/test/CodeGen/X86/crash.ll
index 2d8e63e3134..7c4e64cdf6f 100644
--- a/llvm/test/CodeGen/X86/crash.ll
+++ b/llvm/test/CodeGen/X86/crash.ll
@@ -189,7 +189,7 @@ for.inc44: ; preds = %for.body
}
; PR9028
-define void @f(i64 %A) nounwind {
+define void @func_60(i64 %A) nounwind {
entry:
%0 = zext i64 %A to i160
%1 = shl i160 %0, 64
@@ -199,3 +199,19 @@ entry:
store i576 %4, i576* undef, align 8
ret void
}
+
+; <rdar://problem/9187792>
+define fastcc void @func_61() nounwind sspreq {
+entry:
+ %t1 = tail call i64 @llvm.objectsize.i64(i8* undef, i1 false)
+ %t2 = icmp eq i64 %t1, -1
+ br i1 %t2, label %bb2, label %bb1
+
+bb1:
+ ret void
+
+bb2:
+ ret void
+}
+
+declare i64 @llvm.objectsize.i64(i8*, i1) nounwind readnone
OpenPOWER on IntegriCloud