[all-commits] [llvm/llvm-project] 27cb37: [llvm-profgen] Trim cold function profiles for non...

ictwanglei via All-commits all-commits at lists.llvm.org
Wed Dec 8 12:21:27 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 27cb3707db4b424fbe4d94a6822616ff749de12a
      https://github.com/llvm/llvm-project/commit/27cb3707db4b424fbe4d94a6822616ff749de12a
  Author: wlei <wlei at fb.com>
  Date:   2021-12-08 (Wed, 08 Dec 2021)

  Changed paths:
    A llvm/test/tools/llvm-profgen/Inputs/cold-profile-trimming.raw.prof
    A llvm/test/tools/llvm-profgen/cold-profile-trimming.test
    M llvm/test/tools/llvm-profgen/cs-preinline.test
    M llvm/test/tools/llvm-profgen/merge-cold-profile.test
    M llvm/tools/llvm-profgen/ProfileGenerator.cpp
    M llvm/tools/llvm-profgen/ProfileGenerator.h

  Log Message:
  -----------
  [llvm-profgen] Trim cold function profiles for non-CS AutoFDO

This change allows to trim the profile if it's considered to be cold for baseline AutoFDO. We reuse the cold threshold from `ProfileSummaryBuilder::getColdCountThreshold(..)` which can be set by percent(--profile-summary-cutoff-cold) or by value(--profile-summary-cold-count).

Reviewed By: hoy, wenlei

Differential Revision: https://reviews.llvm.org/D113785




More information about the All-commits mailing list