1 ; RUN: opt < %s -pgo-instr-gen -S | FileCheck %s
2 ; RUN: opt < %s -passes=pgo-instr-gen -S | FileCheck %s
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 @i = dso_local global i32 0, align 4
11 ; CHECK: call void @llvm.instrprof.increment
12 %0 = load i32, i32* @i, align 4
17 define i32 @test2() #0 {
19 ; CHECK-NOT: call void @llvm.instrprof.increment
20 %0 = load i32, i32* @i, align 4
25 attributes #0 = { noprofile }