[PATCH] D47955: [SampleFDO] Add a new compact binary format for sample profile
Wei Mi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 8 11:09:24 PDT 2018
wmi created this revision.
wmi added reviewers: danielcdh, davidxl.
Herald added a subscriber: eraman.
Name table occupies a big chunk of size in current binary format sample profile. In order to reduce its size, the patch changes the sample writer/reader to save/restore MD5Hash of names in the name table. Sample annotation phase will also use MD5Hash of name to query samples accordingly.
Experiment shows compact binary format can reduce the size of sample profile by 2/3 compared with binary format generally.
Repository:
rL LLVM
https://reviews.llvm.org/D47955
Files:
include/llvm/ProfileData/SampleProf.h
include/llvm/ProfileData/SampleProfReader.h
include/llvm/ProfileData/SampleProfWriter.h
lib/ProfileData/SampleProfReader.cpp
lib/ProfileData/SampleProfWriter.cpp
lib/Transforms/IPO/SampleProfile.cpp
test/Transforms/SampleProfile/Inputs/inline.compactbinary.afdo
test/Transforms/SampleProfile/compact-binary-profile.ll
tools/llvm-profdata/llvm-profdata.cpp
unittests/ProfileData/SampleProfTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47955.150543.patch
Type: text/x-patch
Size: 32421 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180608/f6409c65/attachment.bin>
More information about the llvm-commits
mailing list