[llvm] [TypeProf][PGO]Support skipping vtable comparisons for a class and its derived ones (PR #110575)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 1 13:39:38 PDT 2024
================
@@ -851,8 +863,25 @@ bool IndirectCallPromoter::isProfitableToCompareVTables(
LLVM_DEBUG(dbgs() << "\n");
uint64_t CandidateVTableCount = 0;
- for (auto &[GUID, Count] : VTableGUIDAndCounts)
+
+ for (auto &[GUID, Count] : VTableGUIDAndCounts) {
CandidateVTableCount += Count;
+ auto *VTableVar = Symtab->getGlobalVariable(GUID);
----------------
teresajohnson wrote:
can we skip all the new handling when IgnoredBaseTypes is empty?
https://github.com/llvm/llvm-project/pull/110575
More information about the llvm-commits
mailing list