Skip to content

Commit a6f542d

Browse files
committed
[𝘀𝗽𝗿] changes to main this commit is based on
Created using spr 1.3.4 [skip ci]
1 parent ab2c4a0 commit a6f542d

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

bolt/include/bolt/Core/BinaryContext.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -775,11 +775,6 @@ class BinaryContext {
775775
uint64_t PseudoProbeLooseMatchedSampleCount{0};
776776
/// the count of call matched samples
777777
uint64_t CallMatchedSampleCount{0};
778-
/// the number of stale functions that have matching number of blocks in
779-
/// the profile
780-
uint64_t NumStaleFuncsWithEqualBlockCount{0};
781-
/// the number of blocks that have matching size but a differing hash
782-
uint64_t NumStaleBlocksWithEqualIcount{0};
783778
} Stats;
784779

785780
// Original binary execution count stats.

bolt/lib/Passes/BinaryPasses.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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 ") +

bolt/lib/Profile/YAMLProfileReader.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,6 @@ bool YAMLProfileReader::parseFunctionProfile(
350350
<< MismatchedCalls << " calls, and " << MismatchedEdges
351351
<< " edges in profile did not match function " << BF << '\n';
352352

353-
if (YamlBF.NumBasicBlocks != BF.size())
354-
++BC.Stats.NumStaleFuncsWithEqualBlockCount;
355-
356353
if (!opts::InferStaleProfile)
357354
return false;
358355
ArrayRef<ProbeMatchSpec> ProbeMatchSpecs;

0 commit comments

Comments
 (0)