[CSSPGO][llvm-profgen] Fix getCanonicalFnName usage in llvm-profgen
authorwlei <wlei@fb.com>
Thu, 4 Mar 2021 04:37:19 +0000 (20:37 -0800)
committerwlei <wlei@fb.com>
Tue, 16 Mar 2021 04:00:42 +0000 (21:00 -0700)
commitdddd590fd0bcc7e3f0cc9769fe3bad8556aa5c8a
tree52e7d62adc02fe44c97be503c45c15f0f3a23bb1
parent0a954a528b8702681118cfb773d651c1860aee36
[CSSPGO][llvm-profgen] Fix getCanonicalFnName usage in llvm-profgen

Previously we didn't support to keep the unique linkage name(-funique-internal-linkage-name) in llvm-profgen. As discussed in https://reviews.llvm.org/D96932, we choose to do canonicalization for it.

Now since "selected" is set as the default parameter of getCanonicalFnName in `D96932`, we don't need to add any attribute here for the previous usage and only fix the missing usage in the pseudo probe decoding.

Differential Revision: https://reviews.llvm.org/D98226
llvm/test/tools/llvm-profgen/Inputs/unique-linkage-name-dwarf.perfbin [new file with mode: 0755]
llvm/test/tools/llvm-profgen/Inputs/unique-linkage-name-dwarf.perfscript [new file with mode: 0644]
llvm/test/tools/llvm-profgen/Inputs/unique-linkage-name-probe.perfbin [new file with mode: 0755]
llvm/test/tools/llvm-profgen/Inputs/unique-linkage-name-probe.perfscript [new file with mode: 0644]
llvm/test/tools/llvm-profgen/fname-canonicalization.test [new file with mode: 0644]
llvm/test/tools/llvm-profgen/symbolize.ll
llvm/tools/llvm-profgen/ProfiledBinary.cpp
llvm/tools/llvm-profgen/PseudoProbe.cpp