projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Have some testcases
[oota-llvm.git]
/
test
/
Analysis
/
GlobalsModRef
/
aliastest.ll
1
; RUN: llvm-as < %s | opt -globalsmodref-aa -load-vn -gcse | llvm-dis | not grep load
2
%X = internal global int 4
3
4
int %test(int *%P) {
5
store int 7, int* %P
6
store int 12, int* %X ;; cannot alias P, X's addr isn't taken
7
%V = load int* %P
8
ret int %V
9
}