llvm-6502/test/Transforms/IndVarsSimplify/2003-09-12-MultiplePred.ll
2003-09-16 15:29:54 +00:00

13 lines
265 B
LLVM

; RUN: llvm-as < %s | opt -indvars | llvm-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
}