New testcase, this should be simplified

llvm-svn: 8501
This commit is contained in:
Chris Lattner 2003-09-12 16:42:16 +00:00
parent 3b696a256e
commit fcfe86128b

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
}