[PATCH] D15057: [PGO] Enable common VP format in profile runtime

David Li via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 3 12:21:55 PST 2015


davidxl updated this revision to Diff 41788.
davidxl added a comment.

Update the patch:

1. instead of pre-allocate RuntimeRecord which wastes heap space, we now just precomputes the base buffer size
2. an environment variable is introduced to allow user to allocate no default extra bytes to accommodate the case when  concurrent profile update form other threads causes profile data to be dropped (due to to capacity limit)
3. verbose messages are added to diagnose various error conditions.

Patch to completely remove data races on Values field will follow.


http://reviews.llvm.org/D15057

Files:
  lib/profile/InstrProfiling.c
  test/profile/instrprof-value-prof.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15057.41788.patch
Type: text/x-patch
Size: 15689 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151203/d9f2c2ae/attachment.bin>


More information about the llvm-commits mailing list