[all-commits] [llvm/llvm-project] a2768b: [CSSPGO] Honor preinliner decision for ThinLTO imp...

WenleiHe via All-commits all-commits at lists.llvm.org
Thu Sep 2 08:26:30 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a2768b4732a0216dfd346d34e428685f03f10549
      https://github.com/llvm/llvm-project/commit/a2768b4732a0216dfd346d34e428685f03f10549
  Author: Wenlei He <aktoon at gmail.com>
  Date:   2021-09-02 (Thu, 02 Sep 2021)

  Changed paths:
    M llvm/lib/Transforms/IPO/SampleContextTracker.cpp
    M llvm/lib/Transforms/IPO/SampleProfile.cpp
    M llvm/test/Transforms/SampleProfile/csspgo-use-preinliner.ll

  Log Message:
  -----------
  [CSSPGO] Honor preinliner decision for ThinLTO importing

When pre-inliner decision is used for CSSPGO, we should take that into account for ThinLTO importing as well, so post-link sample loader inliner can favor that decision. This is handled by a small tweak in this patch. It also includes a change to transfer preinliner decision when merging context.

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




More information about the All-commits mailing list