projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Oops, make this test the right thing.
[oota-llvm.git]
/
test
/
Transforms
/
ScalarRepl
/
basictest.ll
1
; RUN: llvm-as < %s | opt -scalarrepl -mem2reg | llvm-dis | not grep alloca
2
3
int %test() {
4
%X = alloca { int, float }
5
%Y = getelementptr {int,float}* %X, long 0, ubyte 0
6
store int 0, int* %Y
7
8
%Z = load int* %Y
9
ret int %Z
10
}