[all-commits] [llvm/llvm-project] e87b1b: [CSSPGO] Use callsite sample counts to annotate in...

Hongtao Yu via All-commits all-commits at lists.llvm.org
Thu Feb 18 14:52:54 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e87b1b1d4e789d2350a07873998c992c08152ee6
      https://github.com/llvm/llvm-project/commit/e87b1b1d4e789d2350a07873998c992c08152ee6
  Author: Hongtao Yu <hoy at fb.com>
  Date:   2021-02-18 (Thu, 18 Feb 2021)

  Changed paths:
    M llvm/lib/Transforms/IPO/SampleProfile.cpp

  Log Message:
  -----------
  [CSSPGO] Use callsite sample counts to annotate indirect call sites.

With CSSPGO all indirect call targets are counted torwards the original indirect call site in the profile, including both inlined and non-inlined targets. Therefore no need to look for callee entry counts. This also fixes the issue where callee entry count doesn't match callsite count due to the nature of CS sampling.

I'm also cleaning up the orginal code that called `findIndirectCallFunctionSamples` just to compute the sum, the return value of which was disgarded.

Reviewed By: wmi, wenlei

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




More information about the All-commits mailing list