From fcfe86128b50b25a9a8054dfa63168d17d95b532 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 12 Sep 2003 16:42:16 +0000 Subject: [PATCH] New testcase, this should be simplified llvm-svn: 8501 --- .../IndVarsSimplify/2003-09-12-MultiplePred.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/Regression/Transforms/IndVarsSimplify/2003-09-12-MultiplePred.ll diff --git a/test/Regression/Transforms/IndVarsSimplify/2003-09-12-MultiplePred.ll b/test/Regression/Transforms/IndVarsSimplify/2003-09-12-MultiplePred.ll new file mode 100644 index 00000000000..fc807efc9cc --- /dev/null +++ b/test/Regression/Transforms/IndVarsSimplify/2003-09-12-MultiplePred.ll @@ -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 +}