[PATCH] D16258: [PGO] Profile Summary Index profile writer and reader support
David Li via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 15 22:22:14 PST 2016
davidxl created this revision.
davidxl added a reviewer: vsk.
davidxl added subscribers: llvm-commits, eraman, xur.
Profile summary can be expensive to recompute, so it is better to compute it once during profile write and save the summary in the indexed profile data. This patch adds the support for summary writing and reading.
For older versions of the profile data, the reader is taught to re-synthesize the summary data on the fly. Since profileSummary includes MaxFunctionCount already, existing fields in InstrProfReader and Writer are removed. The MaxFunctionCount computation code is also removed (redundant). The Header still includes MaxFunctionCount field to minimize layout change. This field is deprecated and can be repurposed for something else in the future.
http://reviews.llvm.org/D16258
Files:
include/llvm/ProfileData/InstrProf.h
include/llvm/ProfileData/InstrProfData.inc
include/llvm/ProfileData/InstrProfReader.h
include/llvm/ProfileData/InstrProfWriter.h
lib/ProfileData/InstrProf.cpp
lib/ProfileData/InstrProfReader.cpp
lib/ProfileData/InstrProfWriter.cpp
unittests/ProfileData/InstrProfTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16258.45072.patch
Type: text/x-patch
Size: 15678 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160116/852767e5/attachment.bin>
More information about the llvm-commits
mailing list