projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
09eb4687ac2633d7be3d6bebf1ef01b2e12d4395
[oota-llvm.git]
/
test
/
Transforms
/
FunctionAttrs
/
2008-10-04-LocalMemory.ll
1
; RUN: opt < %s -functionattrs -S | 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
}