[llvm] [TypeProf][PGO]Skip vtable-based ICP for which type profiles are known to be unrepresentative (PR #110575)
Snehasish Kumar via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 1 08:50:36 PDT 2024
================
@@ -851,8 +859,27 @@ bool IndirectCallPromoter::isProfitableToCompareVTables(
LLVM_DEBUG(dbgs() << "\n");
uint64_t CandidateVTableCount = 0;
- for (auto &[GUID, Count] : VTableGUIDAndCounts)
+ SmallVector<MDNode *, 2> Types;
----------------
snehasish wrote:
We can move this to line L870 and drop the `clear()`. Since it's a small vector with only 2 pointers (on the stack) I don't expect changing this will affect performance.
https://github.com/llvm/llvm-project/pull/110575
More information about the llvm-commits
mailing list