mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 17:46:06 +00:00

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
16 lines
367 B
Plaintext
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
|