repo.or.cz
/
llvm
/
stm8.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Heuristic: If the number of operands in the alias are more than the number of
[llvm/stm8.git]
/
test
/
Analysis
/
BasicAA
/
2003-09-19-LocalArgument.ll
blob
56e3339370135bc999f004619551c66b15868b54
1
; In this test, a local alloca cannot alias an incoming argument.
2
3
; RUN: opt < %s -basicaa -gvn -instcombine -S | not grep sub
4
5
define i32 @test(i32* %P) {
6
%X = alloca i32
7
%V1 = load i32* %P
8
store i32 0, i32* %X
9
%V2 = load i32* %P
10
%Diff = sub i32 %V1, %V2
11
ret i32 %Diff
12
}