28 lines · plain
1; Test the critical edge threahold2; RUN: opt < %s -passes=pgo-instr-gen -pgo-critical-edge-threshold=1 -pgo-instrument-entry=true -S | FileCheck %s3 4@sum = dso_local global i32 0, align 45 6define void @foo(i32 %a, i32 %b) {7entry:8 %tobool.not = icmp eq i32 %a, 09 br i1 %tobool.not, label %if.end4, label %if.then10 11if.then:12 %0 = load i32, ptr @sum, align 413 %inc = add nsw i32 %0, 114 store i32 %inc, ptr @sum, align 415 %tobool1.not = icmp eq i32 %b, 016 br i1 %tobool1.not, label %if.end4, label %if.then217 18if.then2:19 %inc3 = add nsw i32 %0, 220 store i32 %inc3, ptr @sum, align 421 br label %if.end422 23if.end4:24 ret void25}26 27; CHECK-NOT: call void @llvm.instrprof.increment(ptr @__profn_foo28