llvm-project/bolt/test/merge-fdata-lbr-mode.test
Amir Ayupov 8652608404
[BOLT] Fix counts aggregation in merge-fdata (#119652)
merge-fdata used to consider misprediction count as part of "signature",
or the aggregation key. This prevented it from collapsing profile lines
with different misprediction counts, which resulted in duplicate
`(from, to)` pairs with different misprediction and execution counts.

Fix that by splitting out misprediction count and accumulating it
separately.

Test Plan: updated bolt/test/merge-fdata-lbr-mode.test
2024-12-14 22:38:24 -08:00

16 lines
367 B
Plaintext

## Check that merge-fdata tool doesn't falsely print no_lbr when not in no-lbr mode
# 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-NOT: no_lbr
# CHECK: 1 main 0 1 main 2 1 3
#--- a.fdata
1 main 0 1 main 2 0 1
#--- b.fdata
1 main 0 1 main 2 1 2