projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
new testcase to verify that we have field sensitive alias analysis info. This
[oota-llvm.git]
/
test
/
Transforms
/
Reassociate
/
2002-05-15-AgressiveSubMove.ll
1
; RUN: llvm-as < %s | opt -reassociate -instcombine -constprop -dce | llvm-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
}