aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineCheckDebugify.cpp
diff options
context:
space:
mode:
authorRong Xu <xur@google.com>2020-12-16 13:11:59 -0800
committerRong Xu <xur@google.com>2020-12-16 13:37:43 -0800
commit0abd744597ee502b6424e5a99fb940ca0f866fe9 (patch)
treeb2d477245c66528e82da7378bc47d1761008f3ad /llvm/lib/CodeGen/MachineCheckDebugify.cpp
parentd69fc6629d077475b0fa1c2de531c4bf0fda9d67 (diff)
downloadllvm-0abd744597ee502b6424e5a99fb940ca0f866fe9.zip
llvm-0abd744597ee502b6424e5a99fb940ca0f866fe9.tar.gz
llvm-0abd744597ee502b6424e5a99fb940ca0f866fe9.tar.bz2
[PGO] Use the sum of profile counts to fix the function entry count
Raw profile count values for each BB are not kept after profile annotation. We record function entry count and branch weights and use them to compute the count when needed. This mechanism works well in a perfect world, but often breaks in real programs, because of number prevision, inconsistent profile, or bugs in BFI). This patch uses sum of profile count values to fix function entry count to make the BFI count close to real profile counts. Differential Revision: https://reviews.llvm.org/D61540
Diffstat (limited to 'llvm/lib/CodeGen/MachineCheckDebugify.cpp')
0 files changed, 0 insertions, 0 deletions