1 ; RUN: opt < %s -passes=inline -S | FileCheck %s
2 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
4 ; Always prefer call site attribute over function attribute
6 define internal i32 @inner1() {
11 define i32 @outer1() {
12 ; CHECK-LABEL: @outer1(
15 %r = call i32 @inner1() noinline
19 define internal i32 @inner2() alwaysinline {
24 define i32 @outer2() {
25 ; CHECK-LABEL: @outer2(
28 %r = call i32 @inner2() noinline
32 define i32 @inner3() alwaysinline {
37 define i32 @outer3() {
38 ; CHECK-LABEL: @outer3(
41 %r = call i32 @inner3() noinline
45 define i32 @inner4() noinline {
50 define i32 @outer4() {
51 ; CHECK-LABEL: @outer4(
55 %r = call i32 @inner4() alwaysinline