aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/CodeExtractor/2004-03-17-MissedLiveIns.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-03-18 05:55:29 +0000
committerChris Lattner <sabre@nondot.org>2004-03-18 05:55:29 +0000
commita930de523ffc61818aa444fc54715f00c2fb13f4 (patch)
tree8c5868f04fae00b255e660211fe4f71900f16f14 /test/Transforms/CodeExtractor/2004-03-17-MissedLiveIns.ll
parentf6e43bc7968df6794e518e964c3428fff86dc0f8 (diff)
downloadexternal_llvm-a930de523ffc61818aa444fc54715f00c2fb13f4.zip
external_llvm-a930de523ffc61818aa444fc54715f00c2fb13f4.tar.gz
external_llvm-a930de523ffc61818aa444fc54715f00c2fb13f4.tar.bz2
New testcase, reduced from 256.bzip2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12492 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/CodeExtractor/2004-03-17-MissedLiveIns.ll')
-rw-r--r--test/Transforms/CodeExtractor/2004-03-17-MissedLiveIns.ll47
1 files changed, 47 insertions, 0 deletions
diff --git a/test/Transforms/CodeExtractor/2004-03-17-MissedLiveIns.ll b/test/Transforms/CodeExtractor/2004-03-17-MissedLiveIns.ll
new file mode 100644
index 0000000..3c65f9d
--- /dev/null
+++ b/test/Transforms/CodeExtractor/2004-03-17-MissedLiveIns.ll
@@ -0,0 +1,47 @@
+; RUN: llvm-as < %s | opt -loop-extract -disable-output
+
+void %sendMTFValues() {
+entry:
+ br bool false, label %then.1, label %endif.1
+
+then.1: ; preds = %entry
+ br bool false, label %loopentry.6.preheader, label %else.0
+
+endif.1: ; preds = %entry
+ ret void
+
+else.0: ; preds = %then.1
+ ret void
+
+loopentry.6.preheader: ; preds = %then.1
+ br bool false, label %endif.7.preheader, label %loopexit.9
+
+endif.7.preheader: ; preds = %loopentry.6.preheader
+ %tmp.183 = add int 0, -1 ; <int> [#uses=1]
+ br label %endif.7
+
+endif.7: ; preds = %endif.7.preheader, %loopexit.15
+ br bool false, label %loopentry.10, label %loopentry.12
+
+loopentry.10: ; preds = %endif.7
+ br label %loopentry.12
+
+loopentry.12: ; preds = %endif.7, %loopentry.10
+ %ge.2.1 = phi int [ 0, %loopentry.10 ], [ %tmp.183, %endif.7 ] ; <int> [#uses=0]
+ br bool false, label %loopexit.14, label %no_exit.11
+
+no_exit.11: ; preds = %loopentry.12
+ ret void
+
+loopexit.14: ; preds = %loopentry.12
+ br bool false, label %loopexit.15, label %no_exit.14
+
+no_exit.14: ; preds = %loopexit.14
+ ret void
+
+loopexit.15: ; preds = %loopexit.14
+ br bool false, label %endif.7, label %loopexit.9
+
+loopexit.9: ; preds = %loopentry.6.preheader, %loopexit.15
+ ret void
+}