mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-13 06:29:59 +00:00
New testcase, this should be simplified
llvm-svn: 8501
This commit is contained in:
parent
3b696a256e
commit
fcfe86128b
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user