[all-commits] [llvm/llvm-project] 74b99b: [CSSPGO] Do not import pseudo probe desc in thinLTO

Hongtao Yu via All-commits all-commits at lists.llvm.org
Tue Jul 13 18:26:53 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 74b99b5c2eacbdef15b99b3e0a8073598f985bb4
      https://github.com/llvm/llvm-project/commit/74b99b5c2eacbdef15b99b3e0a8073598f985bb4
  Author: Hongtao Yu <hoy at fb.com>
  Date:   2021-07-13 (Tue, 13 Jul 2021)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    M llvm/lib/CodeGen/AsmPrinter/PseudoProbePrinter.cpp
    M llvm/lib/CodeGen/AsmPrinter/PseudoProbePrinter.h
    M llvm/lib/Linker/IRMover.cpp
    A llvm/test/ThinLTO/X86/Inputs/pseudo-probe-desc-import.ll
    A llvm/test/ThinLTO/X86/pseudo-probe-desc-import.ll

  Log Message:
  -----------
  [CSSPGO] Do not import pseudo probe desc in thinLTO

Previously we reliedy on pseudo probe descriptors to look up precomputed GUID during probe emission for inlined probes. Since we are moving to always using unique linkage names, GUID for functions can be computed in place from dwarf names. This eliminates the need of importing pseudo probe descs in thinlto, since those descs should be emitted by the original modules.

This significantly reduces thinlto memory footprint in some extreme case where the number of imported modules for a single module is massive.

Test Plan:

Reviewed By: wenlei

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




More information about the All-commits mailing list