repo.or.cz
/
llvm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix a globalopt crash on two Adobe-C++ testcases that the recent
[llvm.git]
/
test
/
Transforms
/
FunctionAttrs
/
2009-01-02-LocalStores.ll
blob
7ef5f06f06138c27e1b0620795ad2b14097bcda8
1
; RUN: opt < %s -functionattrs -S | not grep {nocapture *%%q}
2
; RUN: opt < %s -functionattrs -S | grep {nocapture *%%p}
3
4
define i32* @a(i32** %p) {
5
%tmp = load i32** %p
6
ret i32* %tmp
7
}
8
9
define i32* @b(i32 *%q) {
10
%mem = alloca i32*
11
store i32* %q, i32** %mem
12
%tmp = call i32* @a(i32** %mem)
13
ret i32* %tmp
14
}