[PATCH] Indirect call target profiling compiler-rt changes

David davidxl at google.com
Wed Apr 29 10:47:46 PDT 2015


================
Comment at: lib/profile/InstrProfiling.h:49
@@ -38,1 +48,3 @@
+  const uint8_t *FunctionPointer;
+  __llvm_profile_indirect_target_data **IndirectCallSiteCounters;
 } __llvm_profile_data;
----------------
This can be changed into an array indexed by value profiler kind. Similarly, the NumIndirectCallsites.

const uint32_t NumValueSites[ValueProfileKindLast];
__llvm_value_profile_target_data **ValueProfileCounters[ValueProfileKindLast];

http://reviews.llvm.org/D9009

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






More information about the llvm-commits mailing list