[llvm-commits] [llvm] r80664 - /llvm/trunk/test/Transforms/Inline/callgraph-update.ll
Chris Lattner
sabre at nondot.org
Mon Aug 31 23:33:49 PDT 2009
Author: lattner
Date: Tue Sep 1 01:33:49 2009
New Revision: 80664
URL: http://llvm.org/viewvc/llvm-project?rev=80664&view=rev
Log:
testcase for PR3601
Added:
llvm/trunk/test/Transforms/Inline/callgraph-update.ll
Added: llvm/trunk/test/Transforms/Inline/callgraph-update.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/callgraph-update.ll?rev=80664&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/Inline/callgraph-update.ll (added)
+++ llvm/trunk/test/Transforms/Inline/callgraph-update.ll Tue Sep 1 01:33:49 2009
@@ -0,0 +1,33 @@
+; RUN: llvm-as < %s | opt -inline -loop-rotate | llvm-dis
+; PR3601
+declare void @solve()
+
+define internal fastcc void @read() {
+ br label %bb4
+
+bb3:
+ br label %bb4
+
+bb4:
+ call void @solve()
+ br i1 false, label %bb5, label %bb3
+
+bb5:
+ unreachable
+}
+
+define internal fastcc void @parse() {
+ call fastcc void @read()
+ ret void
+}
+
+define void @main() {
+ invoke fastcc void @parse()
+ to label %invcont unwind label %lpad
+
+invcont:
+ unreachable
+
+lpad:
+ unreachable
+}
More information about the llvm-commits
mailing list