llvm-project/bolt/test/merge-fdata-bat-no-lbr.test
Tibor Dusnoki 5225f1b435
[BOLT][merge-fdata] Fix basic sample profile aggregation without LBR info (#118481)
When a basic sample profile is gathered without LBR info, the generated
profile contains a "no-lbr" tag in the first line of the fdata file.
This PR fixes merge-fdata to recognize and save this tag to the output
file.
2024-12-13 16:28:37 +00:00

21 lines
420 B
Plaintext

## Check that merge-fdata correctly handles merging two fdata files with both boltedcollection and no_lbr tags.
# REQUIRES: system-linux
# RUN: split-file %s %t
# RUN: merge-fdata %t/a.fdata %t/b.fdata -o %t/merged.fdata
# RUN: FileCheck %s --input-file %t/merged.fdata
# CHECK: boltedcollection
# CHECK: no_lbr
# CHECK: main 2
#--- a.fdata
boltedcollection
no_lbr
main 1
#--- b.fdata
boltedcollection
no_lbr
main 1