[PATCH] D154737: [BOLT] Adding stale-related logging

Sergey Pupyrev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 7 12:02:07 PDT 2023


spupyrev created this revision.
Herald added a reviewer: rafauler.
Herald added subscribers: treapster, ayermolo.
Herald added a reviewer: Amir.
Herald added a reviewer: maksfb.
Herald added a project: All.
spupyrev edited the summary of this revision.
Herald added subscribers: wlei, wenlei.
spupyrev published this revision for review.
Herald added subscribers: llvm-commits, wangpc, yota9.
Herald added a project: LLVM.

Adding some logs related to stale profile matching. The new data can be helpful 
to understand how "stale" the input profile is and how well the inference is 
able to utilize the stale data.

Example of outputs on clang-10 built with LTO (profile collected on a year-old release):

  BOLT-INFO: inferred profile for 2101 (18.52% of profiled, 100.00% of stale) functions responsible for 30.95% samples (14754697 out of 47670654)
  BOLT-INFO: stale inference matched 89.42% of basic blocks (79052 out of 88402 stale) responsible for 76.99% samples (645737 out of 838719 stale)

LTO+AutoFDO:

  BOLT-INFO: inferred profile for 6146 (57.57% of profiled, 100.00% of stale) functions responsible for 90.34% samples (50891403 out of 56330313)
  BOLT-INFO: stale inference matched 74.55% of basic blocks (191295 out of 256589 stale) responsible for 57.30% samples (1288632 out of 2248799 stale)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D154737

Files:
  bolt/include/bolt/Core/BinaryFunction.h
  bolt/lib/Passes/BinaryPasses.cpp
  bolt/lib/Profile/StaleProfileMatching.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154737.538223.patch
Type: text/x-patch
Size: 6069 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230707/59675faf/attachment.bin>


More information about the llvm-commits mailing list