mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-08 20:30:50 +00:00
205b641954
input filename so that opt doesn't print the input filename in the output so that grep lines in the tests don't unintentionally match strings in the input filename. llvm-svn: 81537
11 lines
287 B
LLVM
11 lines
287 B
LLVM
; RUN: opt < %s -scalarrepl -mem2reg -S | not grep alloca
|
|
|
|
define i32 @test() {
|
|
%X = alloca { i32, float } ; <{ i32, float }*> [#uses=1]
|
|
%Y = getelementptr { i32, float }* %X, i64 0, i32 0 ; <i32*> [#uses=2]
|
|
store i32 0, i32* %Y
|
|
%Z = load i32* %Y ; <i32> [#uses=1]
|
|
ret i32 %Z
|
|
}
|
|
|