1 ; Test that -inline-threshold overrides thresholds derived from opt levels.
2 ; RUN: opt < %s -O2 -inline-threshold=500 -S | FileCheck %s
3 ; RUN: opt < %s -O3 -inline-threshold=500 -S | FileCheck %s
4 ; RUN: opt < %s -Os -inline-threshold=500 -S | FileCheck %s
5 ; RUN: opt < %s -Oz -inline-threshold=500 -S | FileCheck %s
9 define i32 @simpleFunction(i32 %a) #0 {
11 %a1 = load volatile i32, ptr @a
16 ; Function Attrs: nounwind readnone uwtable
17 define i32 @bar(i32 %a) #0 {
19 ; CHECK: load volatile
21 ; CHECK-NEXT: call i32 @simpleFunction
24 %i = tail call i32 @simpleFunction(i32 6) "function-inline-cost"="749"
25 %j = tail call i32 @simpleFunction(i32 %i) "function-inline-cost"="750"
29 attributes #0 = { nounwind readnone uwtable }