Skip to content

Commit abfb491

Browse files
authored
[NFC][InstrProf] Increment valid profile stat in populateCoverage (#89660)
We increment `NumOfCSPGOFunc` and `NumOfPGOFunc` in `PGOUseFunc::readCounters()` already. We should do the same in `PGOUseFunc::populateCoverage`. https://github.com/llvm/llvm-project/blob/83bc7b57714dc2f6b33c188f2b95a0025468ba51/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp#L1331
1 parent cebc960 commit abfb491

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,6 +1367,7 @@ void PGOUseFunc::populateCoverage(IndexedInstrProfReader *PGOReader) {
13671367
handleInstrProfError(std::move(Err), MismatchedFuncSum);
13681368
return;
13691369
}
1370+
IsCS ? NumOfCSPGOFunc++ : NumOfPGOFunc++;
13701371

13711372
std::vector<uint64_t> &CountsFromProfile = Result.get().Counts;
13721373
DenseMap<const BasicBlock *, bool> Coverage;

0 commit comments

Comments
 (0)