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

Paul Kirth via All-commits all-commits at lists.llvm.org
Thu Dec 8 17:28:42 PST 2022


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

  Changed paths:
    A compiler-rt/test/profile/Linux/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.

This version makes the new runtime test a Linux only test.

Reviewed By: phosek

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




More information about the All-commits mailing list