[all-commits] [llvm/llvm-project] 863184: [CSSPGO] Aggregation by the last K context frames ...

ictwanglei via All-commits all-commits at lists.llvm.org
Mon Jun 14 10:34:25 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 863184dd6920a65dd122603be7e595bc88d89e8b
      https://github.com/llvm/llvm-project/commit/863184dd6920a65dd122603be7e595bc88d89e8b
  Author: wlei <wlei at fb.com>
  Date:   2021-06-14 (Mon, 14 Jun 2021)

  Changed paths:
    M llvm/include/llvm/ProfileData/SampleProf.h
    M llvm/lib/ProfileData/SampleProf.cpp
    M llvm/test/tools/llvm-profgen/merge-cold-profile.test
    M llvm/tools/llvm-profdata/llvm-profdata.cpp
    M llvm/tools/llvm-profgen/ProfileGenerator.cpp

  Log Message:
  -----------
  [CSSPGO] Aggregation by the last K context frames for cold profiles

This change provides the option to merge and aggregate cold context by the last k frames instead of context-less name. By default K = 1 means the context-less one.

This is for better perf tuning. The more selective merging and trimming will rely on llvm-profgen's preinliner.

Reviewed By: wenlei, hoy

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




More information about the All-commits mailing list