@@ -1505,12 +1505,6 @@ Error PrintProgramStats::runOnFunctions(BinaryContext &BC) {
15051505 if (NumAllStaleFunctions) {
15061506 const float PctStale =
15071507 NumAllStaleFunctions / (float )NumAllProfiledFunctions * 100 .0f ;
1508- const float PctStaleFuncsWithEqualBlockCount =
1509- (float )BC.Stats .NumStaleFuncsWithEqualBlockCount /
1510- NumAllStaleFunctions * 100 .0f ;
1511- const float PctStaleBlocksWithEqualIcount =
1512- (float )BC.Stats .NumStaleBlocksWithEqualIcount /
1513- BC.Stats .NumStaleBlocks * 100 .0f ;
15141508 auto printErrorOrWarning = [&]() {
15151509 if (PctStale > opts::StaleThreshold)
15161510 BC.errs () << " BOLT-ERROR: " ;
@@ -1533,17 +1527,6 @@ Error PrintProgramStats::runOnFunctions(BinaryContext &BC) {
15331527 << " %) belong to functions with invalid"
15341528 " (possibly stale) profile.\n " ;
15351529 }
1536- BC.outs () << " BOLT-INFO: " << BC.Stats .NumStaleFuncsWithEqualBlockCount
1537- << " stale function"
1538- << (BC.Stats .NumStaleFuncsWithEqualBlockCount == 1 ? " " : " s" )
1539- << format (" (%.1f%% of all stale)" ,
1540- PctStaleFuncsWithEqualBlockCount)
1541- << " have matching block count.\n " ;
1542- BC.outs () << " BOLT-INFO: " << BC.Stats .NumStaleBlocksWithEqualIcount
1543- << " stale block"
1544- << (BC.Stats .NumStaleBlocksWithEqualIcount == 1 ? " " : " s" )
1545- << format (" (%.1f%% of all stale)" , PctStaleBlocksWithEqualIcount)
1546- << " have matching icount.\n " ;
15471530 if (PctStale > opts::StaleThreshold) {
15481531 return createFatalBOLTError (
15491532 Twine (" BOLT-ERROR: stale functions exceed specified threshold of " ) +
0 commit comments