[all-commits] [llvm/llvm-project] 5f59f4: [CSSPGO] Minor tweak for inline candidate priority...

WenleiHe via All-commits all-commits at lists.llvm.org
Thu Mar 25 21:28:54 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f59f407f59f69c248be2452e5923e6735e7019a
      https://github.com/llvm/llvm-project/commit/5f59f407f59f69c248be2452e5923e6735e7019a
  Author: Wenlei He <aktoon at gmail.com>
  Date:   2021-03-25 (Thu, 25 Mar 2021)

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

  Log Message:
  -----------
  [CSSPGO] Minor tweak for inline candidate priority tie breaker

When prioritize call site to consider for inlining in sample loader, use number of samples as a first tier breaker before using name/guid comparison. This would favor smaller functions when hotness is the same (from the same block). We could try to retrieve accurate function size if this turns out to be more important.

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




More information about the All-commits mailing list