[PATCH] D95547: [CSSPGO] Support of extended-binary-formatted CS profiles.
Hongtao Yu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 27 10:45:08 PST 2021
hoy created this revision.
Herald added subscribers: wenlei, hiraditya.
hoy requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This change brings up the support of context-sensitive profiles in the format of extended bianry. Existing sample profile reader/writer/merger code is being tweaked to reflect the fact of bracketed input contexts, like (`[...]`). The paired brackets are also needed in extbinary profiles because we don't yet have an otherwise good way to tell context apart from regular function names. The context delimintor `@` can somehow serve as a part of the C++ mangled names.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D95547
Files:
llvm/include/llvm/ProfileData/SampleProf.h
llvm/include/llvm/ProfileData/SampleProfReader.h
llvm/lib/ProfileData/SampleProfReader.cpp
llvm/lib/ProfileData/SampleProfWriter.cpp
llvm/test/Transforms/SampleProfile/profile-context-tracker.ll
llvm/test/tools/llvm-profdata/Inputs/csspgo-profile.proftext
llvm/test/tools/llvm-profdata/merge-cs-profile.test
llvm/tools/llvm-profdata/llvm-profdata.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95547.319623.patch
Type: text/x-patch
Size: 12510 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210127/d15c22c1/attachment.bin>
More information about the llvm-commits
mailing list