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
/
basictest.ll
1
; With reassociation, constant folding can eliminate the 12 and -12 constants.
2
;
3
; RUN: llvm-as < %s | opt -reassociate -constprop -instcombine -die | llvm-dis | not grep add
4
5
int %test(int %arg) {
6
%tmp1 = sub int -12, %arg
7
%tmp2 = add int %tmp1, 12
8
ret int %tmp2
9
}