repo.or.cz
/
llvm
/
msp430.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'master' into msp430
[llvm/msp430.git]
/
test
/
Analysis
/
BasicAA
/
2009-03-04-GEPNoalias.ll
blob
f3891ec75f0892968f84633b551446062425ff37
1
; RUN: llvm-as < %s | opt -basicaa -gvn | llvm-dis | grep load
2
3
declare noalias i32* @noalias()
4
5
define i32 @test(i32 %x) {
6
%a = call i32* @noalias()
7
store i32 1, i32* %a
8
%b = getelementptr i32* %a, i32 %x
9
store i32 2, i32* %b
10
11
%c = load i32* %a
12
ret i32 %c
13
}