1 ; RUN: opt < %s -inline -scalarrepl -S | FileCheck %s
2 target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
4 define i32 @test1f(i32 %i) {
8 define i32 @test1(i32 %W) {
9 %X = call i32 @test1f(i32 7)
13 ; CHECK-NEXT: %Y = add i32 7, %W
14 ; CHECK-NEXT: ret i32 %Y
21 %T = type { i32, i32 }
24 define internal %T* @test2f(i1 %cond, %T* %P) {
25 br i1 %cond, label %T, label %F
28 %A = getelementptr %T* %P, i32 0, i32 0
36 define i32 @test2(i1 %cond) {
39 %B = call %T* @test2f(i1 %cond, %T* %A)
40 %C = getelementptr %T* %B, i32 0, i32 0