[all-commits] [llvm/llvm-project] dff831: [CSSPGO][llvm-profdata] Support trimming cold cont...

WenleiHe via All-commits all-commits at lists.llvm.org
Thu Apr 22 00:43:24 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dff8315892e764c57324921bd75b4e9ad184de7c
      https://github.com/llvm/llvm-project/commit/dff8315892e764c57324921bd75b4e9ad184de7c
  Author: Wenlei He <aktoon at gmail.com>
  Date:   2021-04-22 (Thu, 22 Apr 2021)

  Changed paths:
    M llvm/include/llvm/Analysis/ProfileSummaryInfo.h
    M llvm/include/llvm/ProfileData/ProfileCommon.h
    M llvm/lib/Analysis/ProfileSummaryInfo.cpp
    M llvm/lib/ProfileData/ProfileSummaryBuilder.cpp
    A llvm/test/tools/llvm-profdata/cs-sample-trimmer.test
    M llvm/test/tools/llvm-profgen/cs-preinline.test
    M llvm/tools/llvm-profdata/llvm-profdata.cpp
    M llvm/tools/llvm-profgen/ProfileGenerator.cpp
    M llvm/tools/llvm-profgen/ProfileGenerator.h

  Log Message:
  -----------
  [CSSPGO][llvm-profdata] Support trimming cold context when merging profiles

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.

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




More information about the All-commits mailing list