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-04-22-GEPProblem.ll
blob
5d200774da5f02d6ab59eb712d073692e2cc4224
1
; RUN: opt < %s -basicaa -gvn -instcombine -S | grep sub
2
3
; BasicAA was incorrectly concluding that P1 and P2 didn't conflict!
4
5
define i32 @test(i32 *%Ptr, i64 %V) {
6
%P2 = getelementptr i32* %Ptr, i64 1
7
%P1 = getelementptr i32* %Ptr, i64 %V
8
%X = load i32* %P1
9
store i32 5, i32* %P2
10
11
%Y = load i32* %P1
12
13
%Z = sub i32 %X, %Y
14
ret i32 %Z
15
}