[PATCH] D34709: [Profile] Improve profile dumping with merging
David Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 27 13:42:24 PDT 2017
davidxl created this revision.
Herald added a subscriber: sanjoy.
When profile merging is on, the name section in the profile data file won't change after merging. This patch adds support to skip over name section when possible to reduce disk IO.
Do a Clang self build with instrumented clang (IR based), the build time improves a little ~1%. With IR PGO, the name section is relatively small. The total profile size is ~15MB while the compressed name strings is only 2.4MB.
https://reviews.llvm.org/D34709
Files:
lib/profile/InstrProfilingBuffer.c
lib/profile/InstrProfilingFile.c
lib/profile/InstrProfilingInternal.h
lib/profile/InstrProfilingWriter.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34709.104257.patch
Type: text/x-patch
Size: 8491 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170627/e0fc6a13/attachment.bin>
More information about the llvm-commits
mailing list