repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add and use DominatorTreeBase::findNearestCommonDominator().
[llvm-complete.git]
/
test
/
Analysis
/
BasicAA
/
global-size.ll
blob
5e752494a54dd43cf2965042235a5656255d1075
1
; A store or load cannot alias a global if the accessed amount is larger then
2
; the global.
3
4
; RUN: llvm-upgrade < %s | llvm-as | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | not grep load
5
6
%B = global short 8
7
8
implementation
9
10
short %test(int *%P) {
11
%X = load short* %B
12
store int 7, int* %P
13
%Y = load short* %B
14
%Z = sub short %Y, %X
15
ret short %Z
16
}
17