[PATCH] Indirect call target profiling compiler-rt changes

David davidxl at google.com
Fri May 29 22:13:07 PDT 2015


I think there is more room to reduce memory footprint and profile data size.

The reason that value_kind and counter index needs to be recorded and stored is because the number of value entries per site is variant. This problem can be solved by adding one level of indirection when writing out the profile data: Writing out ValueCounters in profile data too (with address fixup after data gathering). With that written out, the llvm_profile_value data can be greatly shrinked:

1. in memory: it needs only 3 64bit integers instead of 4
2. in disk: it needs only 2 64bit integers instead of the current 4 (No need for func index either).


http://reviews.llvm.org/D9009

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list