blob: e5c7874df5ad6821b420f58c530f011bc7a3b4c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep indvar
int %test() {
br bool true, label %LoopHead, label %LoopHead
LoopHead:
%A = phi int [7, %0], [7, %0], [%B, %LoopHead]
%B = add int %A, 1
br bool false, label %LoopHead, label %Out
Out:
ret int %B
}
|