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
/
Transforms
/
FunctionAttrs
/
2008-10-04-LocalMemory.ll
blob
50ca64120004d804a76ce63952cc2cd1093ddc19
1
; RUN: llvm-as < %s | opt -functionattrs | llvm-dis | grep readnone | count 2
2
3
declare i32 @g(i32*) readnone
4
5
define i32 @f() {
6
%x = alloca i32 ; <i32*> [#uses=2]
7
store i32 0, i32* %x
8
%y = call i32 @g(i32* %x) ; <i32> [#uses=1]
9
ret i32 %y
10
}