repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
another random update
[llvm/avr.git]
/
test
/
Transforms
/
IndVarSimplify
/
subtract.ll
blob
db8136ac21fd894fd189cc01826fbef112963d26
1
; RUN: opt %s -indvars -S | grep indvar
2
3
@G = global i64 0 ; <i64*> [#uses=1]
4
5
define void @test(i64 %V) {
6
; <label>:0
7
br label %Loop
8
9
Loop: ; preds = %Loop, %0
10
%X = phi i64 [ 1, %0 ], [ %X.next, %Loop ] ; <i64> [#uses=2]
11
%X.next = sub i64 %X, %V ; <i64> [#uses=1]
12
store i64 %X, i64* @G
13
br label %Loop
14
}
15