1 ; RUN: opt < %s -pgo-instr-gen -S | FileCheck %s
2 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
3 target triple = "x86_64-unknown-linux-gnu"
5 ; CHECK: @__llvm_profile_name__Z9test_br_1i = private constant [13 x i8] c"_Z9test_br_1i"
7 define i32 @_Z9test_br_1i(i32 %i) {
9 %cmp = icmp sgt i32 %i, 0
10 br i1 %cmp, label %if.then, label %if.end
13 ; CHECK: call void @llvm.instrprof.increment(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__llvm_profile_name__Z9test_br_1i, i32 0, i32 0), i64 23925403969, i32 2, i32 1)
14 %add = add nsw i32 %i, 2
18 %retv = phi i32 [ %add, %if.then ], [ %i, %entry ]
19 ; CHECK: call void @llvm.instrprof.increment(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__llvm_profile_name__Z9test_br_1i, i32 0, i32 0), i64 23925403969, i32 2, i32 0)