[PATCH] D153486: [llvm-profdata] GUIDToFuncNameMap can be static
William Junda Huang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 21 17:45:16 PDT 2023
huangjd created this revision.
huangjd added reviewers: davidxl, kazu, xur, snehasish, hoy, wenlei.
Herald added subscribers: wlei, ormris, hiraditya.
Herald added a project: All.
huangjd requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
FunctionSamples::GUIDToFuncNameMap can be static instead of per
function sample. It is only used by SampleProfileLoader on a per module
basis and there's never a case (and we probably don't want such case)
that different FunctionSamples have differnet GUIDToFuncNameMap because it's
just reverse MD5 lookup!
This reduce the size of a FunctionSamples object, which has been a
bottleneck on profile loading.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D153486
Files:
llvm/include/llvm/ProfileData/SampleProf.h
llvm/lib/ProfileData/SampleProf.cpp
llvm/lib/Transforms/IPO/SampleProfile.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153486.533441.patch
Type: text/x-patch
Size: 4533 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230622/02db82c4/attachment.bin>
More information about the llvm-commits
mailing list