1 ; RUN: opt < %s -passes=inline -pass-remarks-missed=inline -inline-cost-full -S 2>&1 | FileCheck %s
2 ; RUN: opt < %s -passes=inline -pass-remarks-missed=inline -S 2>&1 | FileCheck %s
7 define void @callee() {
9 call void @foo() noduplicate
10 ; Just to inflate the cost
11 call void @bar() "call-inline-cost"="1000"
15 define void @caller() {
16 ; CHECK: 'callee' not inlined into 'caller' because it should never be inlined (cost=never): noduplicate
17 ; CHECK: define void @caller()
18 ; CHECK-NEXT: call void @callee()
19 ; CHECK-NEXT: ret void