brintos

brintos / llvm-project-archived public Read only

0
0
Text · 563 B · a94f93d Raw
30 lines · plain
1; RUN: split-file %s %t2; RUN: llvm-profdata merge %t/a.proftext -o %t/a.profdata3; RUN: opt < %t/a.ll -passes=pgo-instr-use -pgo-test-profile-file=%t/a.profdata -S | FileCheck %s4 5;--- a.ll6 7declare ptr @bar()8 9; CHECK: define ptr @foo10; Ensure the profile hash matches. If it doesn't we emit the "instr_prof_hash_mismatch" metadata.11; CHECK-NOT: instr_prof_hash_mismatch12define ptr @foo() {13entry:14  ret ptr null15 162:17  ret ptr null18}19 20;--- a.proftext21# IR level Instrumentation Flag22:ir23foo24# Func Hash:2574226141896690892726# Num Counters:27128# Counter Values:29130