summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-10-17 05:39:39 +0000
committerChris Lattner <sabre@nondot.org>2009-10-17 05:39:39 +0000
commit88b36f11407f6c3c278d15ad5a53e0389bc1761d (patch)
tree0479943c0b105c9522ed2e4e1b33c9ee0f42434f /llvm/test
parentb2305629dba01d62a7b5646f68e168703c578875 (diff)
downloadbcm5719-llvm-88b36f11407f6c3c278d15ad5a53e0389bc1761d.tar.gz
bcm5719-llvm-88b36f11407f6c3c278d15ad5a53e0389bc1761d.zip
Simplify some code (first hunk) and fix PR5208 (second hunk) by
updating the callgraph when introducing a call. llvm-svn: 84310
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Transforms/Inline/crash.ll33
1 files changed, 32 insertions, 1 deletions
diff --git a/llvm/test/Transforms/Inline/crash.ll b/llvm/test/Transforms/Inline/crash.ll
index 30eae7a96a7..f34b44c2aa0 100644
--- a/llvm/test/Transforms/Inline/crash.ll
+++ b/llvm/test/Transforms/Inline/crash.ll
@@ -51,7 +51,38 @@ entry:
unreachable
}
+declare fastcc void @list_Rplacd1284() nounwind ssp
-declare fastcc void @list_Rplacd1284() nounwind ssp
+
+;============================
+; PR5208
+
+define void @AAA() {
+entry:
+ %A = alloca i8, i32 undef, align 1
+ invoke fastcc void @XXX()
+ to label %invcont98 unwind label %lpad156
+
+invcont98:
+ unreachable
+
+lpad156:
+ unreachable
+}
+
+declare fastcc void @YYY()
+
+define internal fastcc void @XXX() {
+entry:
+ %B = alloca i8, i32 undef, align 1
+ invoke fastcc void @YYY()
+ to label %bb260 unwind label %lpad
+
+bb260:
+ ret void
+
+lpad:
+ unwind
+}
OpenPOWER on IntegriCloud