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 -inline --inline-call-penalty=0 --inline-threshold=5 -S | FileCheck %s
5 ; RUN: opt < %s -inline --inline-threshold=5 -S | FileCheck %s -check-prefix=DEFAULT_CALL_PENALTY
7 define i32 @X9(i32 %x) nounwind {
20 define i32 @f1(i32 %x) nounwind {
21 %res = call i32 @X9(i32 %x)
24 ; CHECK: %res = call i32 @X9
26 ; DEFAULT_CALL_PENALTY-LABEL: @f1(
27 ; DEFAULT_CALL_PENALTY-NOT: call