New testcase, this should be simplified

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8501 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-09-12 16:42:16 +00:00
parent 39e8389ba8
commit 46d5bca1ac

View File

@ -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
}