[PATCH] D107299: [SampleFDO] split context string to deduplicate function name used in the context.

Wei Mi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 2 10:58:30 PDT 2021


wmi created this revision.
Herald added subscribers: wenlei, hiraditya.
wmi requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Currently context strings contain a lot of duplicated function names and that signficantly increase the profile size. This change split the context into a series of {name, offset, discriminator} tuples so function names used in the context can be replaced by the index into the name table and that significantly reduce the size consumed by context.


Repository:
  rL LLVM

https://reviews.llvm.org/D107299

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107299.363527.patch
Type: text/x-patch
Size: 18195 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210802/5af18521/attachment.bin>


More information about the llvm-commits mailing list