mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-23 22:16:05 +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