[all-commits] [llvm/llvm-project] 4c3d75: [CSSPGO] Always use callsite samples as callsite p...

Hongtao Yu via All-commits all-commits at lists.llvm.org
Mon Mar 8 22:52:56 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4c3d759d001950dc3fa0bd721707085c295f6e20
      https://github.com/llvm/llvm-project/commit/4c3d759d001950dc3fa0bd721707085c295f6e20
  Author: Hongtao Yu <hoy at fb.com>
  Date:   2021-03-08 (Mon, 08 Mar 2021)

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

  Log Message:
  -----------
  [CSSPGO] Always use callsite samples as callsite probe counts.

For CS profile, the callsite count of previously inlined callees is populated with the entry count of the callees. Therefore when trying to get a weight for calliste probe after inlinining, the callsite count should always be used. The same fix has already been made for non-probe case.

Reviewed By: wenlei

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




More information about the All-commits mailing list