[PATCH] D107838: [CSSPGO] Do not use getCanonicalFnName in pseudo probe descriptor decoding
Hongtao Yu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 10 08:59:48 PDT 2021
hoy created this revision.
Herald added subscribers: modimo, wenlei, hiraditya, mgorny.
hoy requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Pseudo probe descriptors are created very early in the pipeline where function names just come from the front end and are not yet decorated. So calling getCanonicalFnName on the function names in probe desc is basically a no-op, which also addes a depenency from MC to ProfileData unnessesarily.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D107838
Files:
llvm/lib/MC/CMakeLists.txt
llvm/lib/MC/MCPseudoProbe.cpp
Index: llvm/lib/MC/MCPseudoProbe.cpp
===================================================================
--- llvm/lib/MC/MCPseudoProbe.cpp
+++ llvm/lib/MC/MCPseudoProbe.cpp
@@ -356,8 +356,7 @@
uint64_t GUID = std::move(*ErrorOrGUID);
uint64_t Hash = std::move(*ErrorOrHash);
- StringRef Name =
- FunctionSamples::getCanonicalFnName(std::move(*ErrorOrName));
+ StringRef Name = std::move(*ErrorOrName);
// Initialize PseudoProbeFuncDesc and populate it into GUID2FuncDescMap
GUID2FuncDescMap.emplace(GUID, MCPseudoProbeFuncDesc(GUID, Hash, Name));
Index: llvm/lib/MC/CMakeLists.txt
===================================================================
--- llvm/lib/MC/CMakeLists.txt
+++ llvm/lib/MC/CMakeLists.txt
@@ -70,7 +70,6 @@
Support
BinaryFormat
DebugInfoCodeView
- ProfileData
)
add_subdirectory(MCParser)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107838.365495.patch
Type: text/x-patch
Size: 864 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210810/c48cd9a2/attachment.bin>
More information about the llvm-commits
mailing list