[all-commits] [llvm/llvm-project] e038c5: [LTO][Pipelines] Add 0 hot-caller threshold for Sa...

Tianle Liu via All-commits all-commits at lists.llvm.org
Sun Apr 13 20:21:30 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e038c5401c99ca1f19a873a5c88ad7db4645a26a
      https://github.com/llvm/llvm-project/commit/e038c5401c99ca1f19a873a5c88ad7db4645a26a
  Author: Tianle Liu <tianle.l.liu at intel.com>
  Date:   2025-04-14 (Mon, 14 Apr 2025)

  Changed paths:
    M llvm/lib/Passes/PassBuilderPipelines.cpp
    A llvm/test/Other/new-pm-lto-prelink-samplepgo-inline-threshold.ll
    R llvm/test/Other/new-pm-thinlto-prelink-samplepgo-inline-threshold.ll

  Log Message:
  -----------
  [LTO][Pipelines] Add 0 hot-caller threshold for SamplePGO + FullLTO (#135152)

If a hot callsite function is not inlined in the 1st build, inlining the
hot callsite in pre-link stage of SPGO 2nd build may lead to Function
Sample not found in profile file in link stage. It will miss some
profile info.
ThinLTO has already considered and dealed with it by setting
HotCallSiteThreshold to 0 to stop the inline. This patch just adds the
same processing for FullLTO.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list