projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Filter loops that subtract induction variables.
[oota-llvm.git]
/
test
/
Transforms
/
IndVarsSimplify
/
subtract.ll
1
; RUN: llvm-upgrade < %s | llvm-as | opt -indvars | llvm-dis | grep indvar
2
3
%G = global long 0
4
5
void %test(long %V) {
6
br label %Loop
7
Loop:
8
%X = phi long [1, %0], [%X.next, %Loop]
9
%X.next = sub long %X, %V
10
store long %X, long* %G
11
br label %Loop
12
}