[llvm] [WPD] set the branch funnel function entry count (PR #155657)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 28 09:47:12 PDT 2025


================
@@ -1571,6 +1597,11 @@ void DevirtModule::applyICallBranchFunnel(VTableSlotInfo &SlotInfo,
   Apply(SlotInfo.CSInfo);
   for (auto &P : SlotInfo.ConstCSInfo)
     Apply(P.second);
+  for (auto &[F, C] : FunctionEntryCounts) {
+    assert(!F->getEntryCount(/*AllowSynthetic=*/true) &&
----------------
mtrofin wrote:

it's set to `unknown` after this (==`applyICallBranchFunnel`) is called, if we didn't have module-internal callsites to use.

but to the original question, the functions appearing here are funnels we just generated, so should have no entry count.

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


More information about the llvm-commits mailing list