New testcase, which causes the block extractor to barf
authorChris Lattner <sabre@nondot.org>
Fri, 13 Aug 2004 03:08:54 +0000 (03:08 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 13 Aug 2004 03:08:54 +0000 (03:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15715 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/CodeExtractor/2004-08-12-BlockExtractPHI.ll [new file with mode: 0644]

diff --git a/test/Transforms/CodeExtractor/2004-08-12-BlockExtractPHI.ll b/test/Transforms/CodeExtractor/2004-08-12-BlockExtractPHI.ll
new file mode 100644 (file)
index 0000000..cf8e584
--- /dev/null
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | opt -extract-blocks -disable-output
+
+implementation
+
+void %l102_yyparse() {
+no_exit.0.i:
+        br bool false, label %yylex.entry, label %yylex.entry
+
+yylex.entry:
+       %tmp.1027 = phi int  [ 0, %no_exit.0.i ], [ 0, %no_exit.0.i ]
+       ret void
+}