[all-commits] [llvm/llvm-project] 76d074: [InstrProfiling] Make __profd_ unconditionally pri...

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Jun 17 14:17:06 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76d0747e0807307780ba84cbd7e5c80b20c26bd7
      https://github.com/llvm/llvm-project/commit/76d0747e0807307780ba84cbd7e5c80b20c26bd7
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-06-17 (Thu, 17 Jun 2021)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
    M llvm/test/Transforms/PGOProfile/indirect_call_profile.ll

  Log Message:
  -----------
  [InstrProfiling] Make __profd_ unconditionally private for ELF

For ELF, since all counters/data are in a section group (either `comdat any` or
`comdat noduplicates`), and the signature for `comdat any` is `__profc_`, the
D1003372 optimization prerequisite (linker GC cannot discard data variables
while the text section is retained) is always satisified, we can make __profd_
unconditionally private.

Reviewed By: davidxl, rnk

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




More information about the All-commits mailing list