1 ; RUN: opt < %s -passes="print<inline-cost>" 2>&1 | FileCheck %s
3 ; CHECK: Analyzing call of callee1... (caller:foo)
4 ; CHECK-NEXT: define i32 @callee1(i32 %x) {
5 ; CHECK-NEXT: cost before = {{.*}}, cost after = {{.*}}, threshold before = {{.*}}, threshold after = {{.*}}, cost delta = {{.*}}
6 ; CHECK-NEXT: %x1 = add i32 %x, 1
7 ; CHECK-NEXT: cost before = {{.*}}, cost after = {{.*}}, threshold before = {{.*}}, threshold after = {{.*}}, cost delta = {{.*}}
8 ; CHECK-NEXT: %x2 = add i32 %x1, 1
9 ; CHECK-NEXT: cost before = {{.*}}, cost after = {{.*}}, threshold before = {{.*}}, threshold after = {{.*}}, cost delta = {{.*}}
10 ; CHECK-NEXT: %x3 = add i32 %x2, 1
11 ; CHECK-NEXT: cost before = {{.*}}, cost after = {{.*}}, threshold before = {{.*}}, threshold after = {{.*}}, cost delta = {{.*}}
12 ; CHECK-NEXT: ret i32 %x3
15 define i32 @foo(i32 %y) {
16 %x = call i32 @callee1(i32 %y)
20 define i32 @callee1(i32 %x) {