================ @@ -1891,6 +1914,12 @@ static bool skipPGOGen(const Function &F) { return true; if (F.getInstructionCount() < PGOFunctionSizeThreshold) return true; + if (InstrumentColdFunctionCoverage) { + if (!F.getEntryCount()) + return InstrumentColdFunctionCoverageMode == + InstrColdFuncCovMode::Conservative; + return F.getEntryCount()->getCount() > ColdFuncCoverageMaxEntryCount; ---------------- ellishg wrote:
```suggestion if (auto EntryCount = F.getEntryCount()) return EntryCount->getCount() > ColdFuncCoverageMaxEntryCount; return InstrumentColdFunctionCoverageMode == InstrColdFuncCovMode::Conservative; ``` https://github.com/llvm/llvm-project/pull/109837 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits