From: Chris Lattner Date: Fri, 12 Sep 2003 16:42:16 +0000 (+0000) Subject: New testcase, this should be simplified X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=46d5bca1acb7e67e78a7dea06fe6671143245df2;p=oota-llvm.git New testcase, this should be simplified git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8501 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/IndVarsSimplify/2003-09-12-MultiplePred.ll b/test/Transforms/IndVarsSimplify/2003-09-12-MultiplePred.ll new file mode 100644 index 00000000000..fc807efc9cc --- /dev/null +++ b/test/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 +}