repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
pass machinemoduleinfo down into getSymbolForDwarfGlobalReference,
[llvm/avr.git]
/
test
/
Transforms
/
ScalarRepl
/
basictest.ll
blob
a43243cabb676c23229154a007cf06aa512ff0eb
1
; RUN: opt < %s -scalarrepl -mem2reg -S | not grep alloca
2
3
define i32 @test() {
4
%X = alloca { i32, float } ; <{ i32, float }*> [#uses=1]
5
%Y = getelementptr { i32, float }* %X, i64 0, i32 0 ; <i32*> [#uses=2]
6
store i32 0, i32* %Y
7
%Z = load i32* %Y ; <i32> [#uses=1]
8
ret i32 %Z
9
}
10