llvm-project/bolt/test/merge-fdata-no-lbr-mode.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

19 lines
366 B
Plaintext

## Check that merge-fdata tool correctly processes fdata files with header
## string produced by no-lbr mode (no_lbr)
# 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: no_lbr
# CHECK: main 2
#--- a.fdata
no_lbr
main 1
#--- b.fdata
no_lbr
main 1