[all-commits] [llvm/llvm-project] f0f70a: [CSSPGO] Do not recount callee samples when comput...

Hongtao Yu via All-commits all-commits at lists.llvm.org
Fri Feb 11 09:06:20 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f0f70ae674f5b213f3508b774df6f27384fd2046
      https://github.com/llvm/llvm-project/commit/f0f70ae674f5b213f3508b774df6f27384fd2046
  Author: Hongtao Yu <hoy at fb.com>
  Date:   2022-02-11 (Fri, 11 Feb 2022)

  Changed paths:
    M llvm/include/llvm/ProfileData/SampleProf.h
    M llvm/lib/ProfileData/ProfileSummaryBuilder.cpp
    M llvm/lib/ProfileData/SampleProf.cpp
    M llvm/test/tools/llvm-profdata/cs-sample-nested-profile.test
    M llvm/test/tools/llvm-profgen/cs-preinline.test

  Log Message:
  -----------
  [CSSPGO] Do not recount callee samples when computing profile summary for nested CS profile.

When generating nested CS profile with all calling contexts of a function duplicated into a base profile under `--generate-merged-base-profiles`, do not recount callee samples when computing profile summary. This fixes the profile summary mismatch between flat cs profile and nested cs profile, for both extbinary and text format.

Reviewed By: wenlei

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




More information about the All-commits mailing list