Skip to content

Commit

Permalink
Add a note about the "entry count" used the profile summary
Browse files Browse the repository at this point in the history
Thanks to David Li for the clarification.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268669 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
chisophugis committed May 5, 2016
1 parent 8fa402e commit d4c22d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ProfileData/ProfileSummary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ const std::vector<uint32_t> ProfileSummary::DefaultCutoffs(
const char *ProfileSummary::KindStr[2] = {"InstrProf", "SampleProfile"};

void InstrProfSummary::addRecord(const InstrProfRecord &R) {
// The first counter is not necessarily an entry count for IR
// instrumentation profiles.
// Eventually MaxFunctionCount will become obsolete and this can be
// removed.
addEntryCount(R.Counts[0]);
for (size_t I = 1, E = R.Counts.size(); I < E; ++I)
addInternalCount(R.Counts[I]);
Expand Down

0 comments on commit d4c22d2

Please sign in to comment.