Home | History | Annotate | Download | only in ScalarRepl
      1 ; RUN: opt < %s -scalarrepl | llvm-dis
      2 ; Make sure that SROA "scalar conversion" can handle first class aggregates.
      3 
      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
     11 }
     12 
     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
     20 }
     21 
     22