[PATCH] D76255: [SampleFDO] Port MD5 name table support to extbinary format.
Wei Mi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 16 15:19:04 PDT 2020
wmi created this revision.
wmi added reviewers: davidxl, wenlei.
Herald added a subscriber: hiraditya.
Compbinary format uses MD5 to represent strings in name table. That gives smaller profile. The patch adds the support in extbinary format. It is off by default but user can choose to enable it.
Note the feature of using MD5 in name table can bring very small chance of name conflict leading to profile mismatch. Besides, profile using the feature won't have the profile remapping support.
Repository:
rL LLVM
https://reviews.llvm.org/D76255
Files:
llvm/include/llvm/ProfileData/SampleProf.h
llvm/include/llvm/ProfileData/SampleProfReader.h
llvm/include/llvm/ProfileData/SampleProfWriter.h
llvm/lib/ProfileData/SampleProf.cpp
llvm/lib/ProfileData/SampleProfReader.cpp
llvm/lib/ProfileData/SampleProfWriter.cpp
llvm/lib/Transforms/IPO/SampleProfile.cpp
llvm/test/Transforms/SampleProfile/Inputs/inline.md5extbinary.afdo
llvm/test/Transforms/SampleProfile/profile-format.ll
llvm/test/tools/llvm-profdata/roundtrip.test
llvm/tools/llvm-profdata/llvm-profdata.cpp
llvm/unittests/ProfileData/SampleProfTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76255.250634.patch
Type: text/x-patch
Size: 24214 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200316/b0654c85/attachment.bin>
More information about the llvm-commits
mailing list