1 ; RUN: opt < %s -passes=pgo-instr-gen -S | FileCheck %s
3 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
4 target triple = "x86_64-unknown-linux-gnu"
6 @i = dso_local global i32 0, align 4
10 ; CHECK: call void @llvm.instrprof.increment
11 %0 = load i32, ptr @i, align 4
16 define i32 @test2() #0 {
18 ; CHECK-NOT: call void @llvm.instrprof.increment
19 %0 = load i32, ptr @i, align 4
24 define i32 @test3() skipprofile {
26 ; CHECK-NOT: call void @llvm.instrprof.increment
30 attributes #0 = { noprofile }