summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objcopy/Object.cpp
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2017-10-10 21:13:50 +0000
committerDehao Chen <dehao@google.com>2017-10-10 21:13:50 +0000
commit3f56a05ae57db4c4efd0717dd72aa437fb9376f9 (patch)
treefcd66a87451024613004b29e8f41e3feac5ef64a /llvm/tools/llvm-objcopy/Object.cpp
parentb74063d21ff526f27c8b6601286e7748ea7624fc (diff)
downloadbcm5719-llvm-3f56a05ae57db4c4efd0717dd72aa437fb9376f9.tar.gz
bcm5719-llvm-3f56a05ae57db4c4efd0717dd72aa437fb9376f9.zip
Use the first instruction's count to estimate the funciton's entry frequency.
Summary: In the current implementation, we only have accurate profile count for standalone symbols. For inlined functions, we do not have entry count data because it's not available in LBR. In this patch, we use the first instruction's frequency to estimiate the function's entry count, especially for inlined functions. This may be inaccurate due to debug info in optimized code. However, this is a better estimate than the static 80/20 estimation we have in the current implementation. Reviewers: tejohnson, davidxl Reviewed By: tejohnson Subscribers: sanjoy, llvm-commits, aprantl Differential Revision: https://reviews.llvm.org/D38478 llvm-svn: 315369
Diffstat (limited to 'llvm/tools/llvm-objcopy/Object.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud