When removing a function from the function set and adding it to deferred, we
[llvm.git] / test / Transforms / ScalarRepl / sroa-fca.ll
blob2df3b9be1e4821c0e20e4fde6d57a073e8e5316d
1 ; RUN: opt < %s -scalarrepl | llvm-dis
2 ; Make sure that SROA "scalar conversion" can handle first class aggregates.
4 define i64 @test({i32, i32} %A) {
5         %X = alloca i64
6         %Y = bitcast i64* %X to {i32,i32}*
7         store {i32,i32} %A, {i32,i32}* %Y
8         
9         %Q = load i64* %X
10         ret i64 %Q
13 define {i32,i32} @test2(i64 %A) {
14         %X = alloca i64
15         %Y = bitcast i64* %X to {i32,i32}*
16         store i64 %A, i64* %X
17         
18         %Q = load {i32,i32}* %Y
19         ret {i32,i32} %Q