[llvm-branch-commits] [llvm] [compiler-rt] [ThinLTO][TypeProf] Implement vtable def import (PR #79381)
Mingming Liu via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Jan 25 16:42:29 PST 2024
================
@@ -129,15 +131,11 @@ static bool findRefEdges(ModuleSummaryIndex &Index, const User *CurUser,
if (I) {
uint32_t ActualNumValueData = 0;
uint64_t TotalCount = 0;
- // 24 is the maximum number of values preserved for one instrumented site,
- // defined by INSTR_PROF_DEFAULT_NUM_VAL_PER_SITE in
- // compiler-rt/lib/profile/InstrProfilingValue.c; passing 24 as
- // `MaxNumValueData` controls the max number of elements in the returned
- // array. The actual number of values is gated by the number of ops in !prof
- // metadata.
+ // MaxNumVTableAnnotations is the maximum number of vtables annotated on
+ // the instruction.
auto ValueDataArray = getValueProfDataFromInst(
- *I, IPVK_VTableTarget, 24 /* MaxNumValueData */, ActualNumValueData,
- TotalCount);
+ *I, IPVK_VTableTarget, MaxNumVTableAnnotations /* MaxNumValueData */,
----------------
minglotus-6 wrote:
done.
https://github.com/llvm/llvm-project/pull/79381
More information about the llvm-branch-commits
mailing list