1 ; Check that calls are not inlined if the call penalty is low. The value of the
2 ; call penalty is provided with the '--inline-call-penalty' option.
4 ; RUN: opt < %s -passes=inline --inline-call-penalty=0 --inline-threshold=5 -S | FileCheck %s
5 ; RUN: opt < %s -passes=inline --inline-threshold=5 -S | FileCheck %s -check-prefix=DEFAULT_CALL_PENALTY
9 define void @X9() nounwind {
10 call void @extern() "call-inline-cost"="30"
14 define void @f1() nounwind {
18 ; CHECK: call void @X9
20 ; DEFAULT_CALL_PENALTY-LABEL: @f1(
21 ; DEFAULT_CALL_PENALTY: call void @extern
22 ; DEFAULT_CALL_PENALTY-NOT: call void @X9