[all-commits] [llvm/llvm-project] 90dfbe: [IndirectCallPromotion] Don't strip ".__uniq." suf...

wmi-11 via All-commits all-commits at lists.llvm.org
Thu Mar 11 11:09:22 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 90dfbeef5982ecfb5523b48f3c301bea033e5c3d
      https://github.com/llvm/llvm-project/commit/90dfbeef5982ecfb5523b48f3c301bea033e5c3d
  Author: Wei Mi <wmi at google.com>
  Date:   2021-03-11 (Thu, 11 Mar 2021)

  Changed paths:
    M llvm/lib/ProfileData/InstrProf.cpp
    A llvm/test/Transforms/PGOProfile/indirect_call_promotion_unique.ll

  Log Message:
  -----------
  [IndirectCallPromotion] Don't strip ".__uniq." suffix when it strips
".llvm." suffix.

Currently IndirectCallPromotion simply strip everything after the first "."
in LTO mode, in order to match the symbol name and the name with ".llvm."
suffix in the value profile. However, if -funique-internal-linkage-names
and thinlto are both enabled, the name may have both ".__uniq." suffix and
".llvm." suffix, and the current mechanism will strip them both, which is
unexpected. The patch fixes the problem.

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




More information about the All-commits mailing list