[all-commits] [llvm/llvm-project] 1645f4: [CSSPGO] Factor out common part for CSSPGO inline ...

WenleiHe via All-commits all-commits at lists.llvm.org
Tue Feb 2 07:55:41 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1645f465be85223e9f5b6303a3e5e0e491fd819f
      https://github.com/llvm/llvm-project/commit/1645f465be85223e9f5b6303a3e5e0e491fd819f
  Author: Wenlei He <aktoon at gmail.com>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    M llvm/lib/Transforms/IPO/SampleProfile.cpp
    M llvm/test/Transforms/SampleProfile/pseudo-probe-inline.ll
    M llvm/test/Transforms/SampleProfile/remarks.ll

  Log Message:
  -----------
  [CSSPGO] Factor out common part for CSSPGO inline and AFDO inline

Refactoring SampleProfileLoader::inlineHotFunctions to use helpers from CSSPGO inlining and reduce similar code in the inlining loop, plus minor cleanup for AFDO path.

This is resubmit of D95024, with build break and overtighten assertion fixed.

Test Plan:




More information about the All-commits mailing list