[llvm] abfb491 - [NFC][InstrProf] Increment valid profile stat in populateCoverage (#89660)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 23 09:51:28 PDT 2024
Author: Ellis Hoag
Date: 2024-04-23T11:51:24-05:00
New Revision: abfb4915e12f4767de8714cf79591b509b09896e
URL: https://github.com/llvm/llvm-project/commit/abfb4915e12f4767de8714cf79591b509b09896e
DIFF: https://github.com/llvm/llvm-project/commit/abfb4915e12f4767de8714cf79591b509b09896e.diff
LOG: [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
Added:
Modified:
llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
index 98c6f8cbf5afef..a7b7556685e443 100644
--- a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
+++ b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
@@ -1367,6 +1367,7 @@ void PGOUseFunc::populateCoverage(IndexedInstrProfReader *PGOReader) {
handleInstrProfError(std::move(Err), MismatchedFuncSum);
return;
}
+ IsCS ? NumOfCSPGOFunc++ : NumOfPGOFunc++;
std::vector<uint64_t> &CountsFromProfile = Result.get().Counts;
DenseMap<const BasicBlock *, bool> Coverage;
More information about the llvm-commits
mailing list