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
Fix bugs section.
[llvm-complete.git]
/
test
/
Analysis
/
BasicAA
/
2003-09-19-LocalArgument.ll
blob
ee6ac9c65a224e6a2a3343a05eabad97950f8e22
1
; In this test, a local alloca cannot alias an incoming argument.
2
3
; RUN: llvm-upgrade < %s | llvm-as | opt -load-vn -gcse -instcombine | llvm-dis | not grep sub
4
5
int %test(int* %P) {
6
%X = alloca int
7
%V1 = load int* %P
8
store int 0, int* %X
9
%V2 = load int* %P
10
%Diff = sub int %V1, %V2
11
ret int %Diff
12
}