[llvm] [TypeProf][PGO]Skip vtable-based ICP for which type profiles are known to be unrepresentative (PR #110575)

Mingming Liu via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 1 12:25:26 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;
----------------
minglotus-6 wrote:

Agree that it's better to move this vector inside the loop. Done.

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


More information about the llvm-commits mailing list