[llvm] [IRPGO][ValueProfile] Instrument virtual table address that could be used to do virtual table address comparision for indirect-call-promotion. (PR #66825)

Mingming Liu via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 30 12:36:24 PDT 2023


================
@@ -124,9 +124,27 @@ int __llvm_profile_merge_from_buffer(const char *ProfileData,
   SrcCountersEnd = SrcCountersStart +
                    Header->NumCounters * __llvm_profile_counter_entry_size();
   SrcNameStart = SrcCountersEnd;
-  SrcValueProfDataStart =
+
+  // Skip vtable profile data section and vtable names sections for runtime
----------------
minglotus-6 wrote:

add a helper function `getDistanceFromCounterToValueProf` to skip the following three sections (names, vtable names, vtable profile data)

https://github.com/llvm/llvm-project/pull/66825


More information about the llvm-commits mailing list