brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 6845531 Raw
19 lines · plain
1; RUN: llvm-profdata merge -sample -extbinary -prof-sym-list=%S/Inputs/profile-symbol-list-1.text %S/Inputs/sample-profile.proftext -o %t.1.output2; RUN: llvm-profdata merge -sample -extbinary -prof-sym-list=%S/Inputs/profile-symbol-list-2.text %S/Inputs/sample-profile.proftext -o %t.2.output3; RUN: llvm-profdata merge -sample -extbinary %t.1.output %t.2.output -o %t.3.output4; RUN: llvm-profdata show -sample -show-prof-sym-list %t.3.output > %t.4.output5; RUN: diff -b %S/Inputs/profile-symbol-list.expected %t.4.output6; RUN: llvm-profdata merge -sample -extbinary --drop-profile-symbol-list %t.1.output %t.2.output -o %t.5.output7; RUN: llvm-profdata show -sample -show-sec-info-only %t.5.output  | FileCheck %s -check-prefix=NOSYMLIST8 9; NOSYMLIST: ProfileSymbolListSection {{.*}} Size: 010 11;; Generate two SampleFDO binary profiles and merge them.12;; Tests that the vtable counters in the merged profile are the aggregated13;; result from both sources.14; RUN: llvm-profdata merge -sample -extbinary -extbinary-write-vtable-type-prof -prof-sym-list=%S/Inputs/profile-symbol-list-1.text %S/Inputs/sample-profile-ext.proftext -o %t.1.output15; RUN: llvm-profdata merge -sample -extbinary -extbinary-write-vtable-type-prof -prof-sym-list=%S/Inputs/profile-symbol-list-2.text %S/Inputs/sample-profile-ext.proftext -o %t.2.output16; RUN: llvm-profdata merge -sample -extbinary -extbinary-write-vtable-type-prof %t.1.output %t.2.output -o %t.3.output17; RUN: llvm-profdata show -sample -show-prof-sym-list %t.3.output > %t.4.output18; RUN: diff -b %S/Inputs/profile-symbol-list-ext.expected %t.4.output19