[all-commits] [llvm/llvm-project] 071c39: Reland "[pgo] Avoid introducing relocations by usi...

Paul Kirth via All-commits all-commits at lists.llvm.org
Thu Dec 8 09:37:33 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 071c39df8632561b599f7b1debd81b3cf6b5b396
      https://github.com/llvm/llvm-project/commit/071c39df8632561b599f7b1debd81b3cf6b5b396
  Author: Paul Kirth <paulkirth at google.com>
  Date:   2022-12-08 (Thu, 08 Dec 2022)

  Changed paths:
    A compiler-rt/test/profile/instrprof-discarded-comdat.cpp
    M llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
    M llvm/test/Transforms/PGOProfile/comdat.ll
    A llvm/test/Transforms/PGOProfile/prof_avoid_relocs.ll

  Log Message:
  -----------
  Reland "[pgo] Avoid introducing relocations by using private alias""

In many cases, we can use an alias to avoid a symbolic relocations,
instead of using the public, interposable symbol. When the instrumented
function is in a COMDAT, we can use a hidden alias, and still avoid
references to discarded sections.

Reviewed By: phosek

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




More information about the All-commits mailing list