brintos

brintos / llvm-project-archived public Read only

0
0
Text · 457 B · 23feade Raw
13 lines · plain
1; Test that we annotate entire program's summary and not just this module's2; RUN: llvm-profdata merge %S/Inputs/PR28219.proftext -o %t.profdata3; RUN: opt < %s -passes=pgo-instr-use -pgo-test-profile-file=%t.profdata -S | FileCheck %s4 5define i32 @bar() {6entry:7  ret i32 18}9; CHECK-DAG: {{![0-9]+}} = !{i32 1, !"ProfileSummary", {{![0-9]+}}}10; CHECK-DAG: {{![0-9]+}} = !{!"NumFunctions", i64 2}11; CHECK-DAG: {{![0-9]+}} = !{!"MaxFunctionCount", i64 3}12 13