projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Remove explicit control flow through the use of the 'not' script
[oota-llvm.git]
/
test
/
Transforms
/
Reassociate
/
2002-05-15-AgressiveSubMove.ll
1
; RUN: as < %s | opt -reassociate -instcombine -constprop -dce | dis | not grep add
2
3
int %test(int %A) {
4
%X = add int %A, 1
5
%Y = add int %A, 1
6
%r = sub int %X, %Y
7
ret int %r ; Should be equal to 0!
8
}