New testcase, this should be simplified
authorChris Lattner <sabre@nondot.org>
Fri, 12 Sep 2003 16:42:16 +0000 (16:42 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 12 Sep 2003 16:42:16 +0000 (16:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8501 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/IndVarsSimplify/2003-09-12-MultiplePred.ll [new file with mode: 0644]

diff --git a/test/Transforms/IndVarsSimplify/2003-09-12-MultiplePred.ll b/test/Transforms/IndVarsSimplify/2003-09-12-MultiplePred.ll
new file mode 100644 (file)
index 0000000..fc807ef
--- /dev/null
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | opt -indvars | dis | grep indvar
+
+int %test() {
+       br bool true, label %LoopHead, label %LoopHead
+
+LoopHead:
+       %A = phi int [0, %0], [0, %0], [%B, %LoopHead]
+       %B = add int %A, 1
+       br bool false, label %LoopHead, label %Out
+Out:
+       ret int %B
+}