[PATCH] D68253: [SampleFDO] Add compression support for any section in ExtBinary profile format
Wei Mi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 30 16:15:20 PDT 2019
wmi created this revision.
wmi added reviewers: davidxl, mtrofin.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
Previously ExtBinary profile format only supports compression using zlib for profile symbol list. In this patch, we extend the compression support to any section. User can select some or all of the sections to compress. In an experiment, for a 45M profile in ExtBinary format, compressing name table reduced its size to 24M, and compressing all the sections reduced its size to 11M.
Repository:
rL LLVM
https://reviews.llvm.org/D68253
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/test/Transforms/SampleProfile/profile-format-compress.ll
llvm/test/tools/llvm-profdata/profile-symbol-list-compress.test
llvm/test/tools/llvm-profdata/roundtrip-compress.test
llvm/tools/llvm-profdata/llvm-profdata.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68253.222513.patch
Type: text/x-patch
Size: 31519 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190930/fdc9bd90/attachment.bin>
More information about the llvm-commits
mailing list