[PATCH] D128675: [CSSPGO] Add a SecMetadataOffsetTable to extbinary profile
Hongtao Yu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 27 12:09:51 PDT 2022
hoy created this revision.
Herald added subscribers: modimo, wenlei, hiraditya.
Herald added a project: All.
hoy requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
I've been seeing compile time slowdown due to the loading of function metadata section with using CS nested profile for CSSPGO, where the metadata section is big due to its nested structure. I'm introducing SecMetadataOffsetTable to speed up the on-demand loading of the metadata section, similarly with the existing SecFunctionOffsetTable. This neables a 6% compilation speed up, based on one of our internal large benchmarks.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D128675
Files:
llvm/include/llvm/ProfileData/SampleProf.h
llvm/include/llvm/ProfileData/SampleProfReader.h
llvm/include/llvm/ProfileData/SampleProfWriter.h
llvm/lib/ProfileData/SampleProfReader.cpp
llvm/lib/ProfileData/SampleProfWriter.cpp
llvm/test/tools/llvm-profgen/cs-preinline.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128675.440349.patch
Type: text/x-patch
Size: 16534 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220627/ebd05e91/attachment.bin>
More information about the llvm-commits
mailing list