[PATCH] D100528: [CSSPGO][llvm-profdata] Support trimming cold context when merging profiles

Wenlei He via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 14 22:58:25 PDT 2021


wenlei created this revision.
wenlei added reviewers: hoy, wmi, davidxl.
Herald added subscribers: modimo, lxfind, eraman, mgorny.
wenlei requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The change adds support for triming and merging cold context when mergine CSSPGO profiles using llvm-profdata. This is similar to the context profile trimming in llvm-profgen, however the flexibility to trim cold context after profile is generated can be useful.

A bug fix is also included to make sure PSI thresholds are always calcuated before query.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D100528

Files:
  llvm/include/llvm/Analysis/ProfileSummaryInfo.h
  llvm/test/tools/llvm-profdata/cs-sample-trimmer.test
  llvm/test/tools/llvm-profgen/cs-preinline.test
  llvm/tools/llvm-profdata/CMakeLists.txt
  llvm/tools/llvm-profdata/llvm-profdata.cpp
  llvm/tools/llvm-profgen/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100528.337638.patch
Type: text/x-patch
Size: 7571 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210415/d797e682/attachment.bin>


More information about the llvm-commits mailing list