1 ; RUN: opt < %s -passes=pgo-instr-gen -S | FileCheck %s --implicit-check-not='llvm.instrprof.' --check-prefixes=CHECK,ALL
2 ; RUN: opt < %s -passes=pgo-instr-gen -pgo-function-size-threshold=2 -S | FileCheck %s --implicit-check-not='llvm.instrprof.' --check-prefixes=CHECK,ALL
3 ; RUN: opt < %s -passes=pgo-instr-gen -pgo-function-size-threshold=3 -S | FileCheck %s --implicit-check-not='llvm.instrprof.'
4 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
5 target triple = "x86_64-unknown-linux-gnu"
7 ; CHECK-LABEL: define i32 @small(
8 define i32 @small(i32 %i) {
9 ; ALL: call void @llvm.instrprof.increment({{.*}})
14 ; CHECK-LABEL: define i32 @large(
15 define i32 @large(i32 %0) {
16 ; CHECK: call void @llvm.instrprof.increment({{.*}})
17 %2 = shl nsw i32 %0, 3
22 %7 = add nsw i32 %5, %6
23 %8 = mul nsw i32 %0, %0
25 %10 = add nsw i32 %7, %9
29 ; CHECK: declare void @llvm.instrprof.increment({{.*}})