projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Eliminate more redundant llvm-as calls.
[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
}