[PATCH] D158664: [PSI] Use zero function entry count info when getting profile count for calls
David Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 23 13:29:00 PDT 2023
davidxl added a comment.
I assume this is with instrumentation based FDO. Why are there functions without profile?
================
Comment at: llvm/lib/Analysis/ProfileSummaryInfo.cpp:93
}
+ if (auto *Called = Call.getCalledFunction()) {
+ auto CalledCount = Called->getEntryCount();
----------------
Put this in the else case for the following if(BFI) {} check below.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158664/new/
https://reviews.llvm.org/D158664
More information about the llvm-commits
mailing list