Skip to content

Commit 8720709

Browse files
[gardening] Consistent formatting of STATISTIC(…, "…");
1 parent 00de8a3 commit 8720709

8 files changed

+15
-15
lines changed

Diff for: lib/SILOptimizer/IPO/GlobalPropertyOpt.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
using namespace swift;
3030

31-
STATISTIC(NumPropertiesReplaced, "Number of array property calls replaced");
31+
STATISTIC(NumPropertiesReplaced, "Number of array property calls replaced");
3232

3333
namespace {
3434

Diff for: lib/SILOptimizer/Transforms/CopyForwarding.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@
7272
#include "llvm/Support/Debug.h"
7373

7474
STATISTIC(NumCopyNRVO, "Number of copies removed via named return value opt.");
75-
STATISTIC(NumCopyForward, "Number of copies removed via forward propagation.");
75+
STATISTIC(NumCopyForward, "Number of copies removed via forward propagation");
7676
STATISTIC(NumCopyBackward,
77-
"Number of copies removed via backward propagation.");
77+
"Number of copies removed via backward propagation");
7878

7979
using namespace swift;
8080

Diff for: lib/SILOptimizer/Transforms/RedundantOverflowCheckRemoval.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
using namespace swift;
3030

31-
STATISTIC(NumCondFailRemoved, "Number of cond_fail instructions removed");
31+
STATISTIC(NumCondFailRemoved, "Number of cond_fail instructions removed");
3232

3333
namespace {
3434

Diff for: lib/SILOptimizer/Transforms/RemovePin.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include "llvm/Support/CommandLine.h"
3434
#include "llvm/Support/Debug.h"
3535

36-
STATISTIC(NumPinPairsRemoved, "Num pin pairs removed");
36+
STATISTIC(NumPinPairsRemoved, "Number of pin pairs removed");
3737

3838
using namespace swift;
3939

Diff for: lib/SILOptimizer/Transforms/SILCodeMotion.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
#include "llvm/ADT/Statistic.h"
3131
#include "llvm/Support/Debug.h"
3232

33-
STATISTIC(NumSunk, "Number of instructions sunk");
34-
STATISTIC(NumRefCountOpsSimplified, "number of enum ref count ops simplified.");
33+
STATISTIC(NumSunk, "Number of instructions sunk");
34+
STATISTIC(NumRefCountOpsSimplified, "Number of enum ref count ops simplified");
3535
STATISTIC(NumHoisted, "Number of instructions hoisted");
3636

3737
using namespace swift;

Diff for: lib/SILOptimizer/Transforms/SimplifyCFG.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@
3434
#include "llvm/Support/CommandLine.h"
3535
using namespace swift;
3636

37-
STATISTIC(NumBlocksDeleted, "Number of unreachable blocks removed");
38-
STATISTIC(NumBlocksMerged, "Number of blocks merged together");
39-
STATISTIC(NumJumpThreads, "Number of jumps threaded");
40-
STATISTIC(NumTermBlockSimplified, "Number of programterm block simplified");
37+
STATISTIC(NumBlocksDeleted, "Number of unreachable blocks removed");
38+
STATISTIC(NumBlocksMerged, "Number of blocks merged together");
39+
STATISTIC(NumJumpThreads, "Number of jumps threaded");
40+
STATISTIC(NumTermBlockSimplified, "Number of programterm block simplified");
4141
STATISTIC(NumConstantFolded, "Number of terminators constant folded");
42-
STATISTIC(NumDeadArguments, "Number of unused arguments removed");
42+
STATISTIC(NumDeadArguments, "Number of unused arguments removed");
4343
STATISTIC(NumSROAArguments, "Number of aggregate argument levels split by "
44-
"SROA ");
44+
"SROA");
4545

4646
//===----------------------------------------------------------------------===//
4747
// CFG Simplification

Diff for: lib/SILOptimizer/Transforms/Sink.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
using namespace swift;
3838

39-
STATISTIC(NumInstrSunk, "Number of instructions sunk");
39+
STATISTIC(NumInstrSunk, "Number of instructions sunk");
4040

4141
namespace {
4242

Diff for: lib/Sema/CSRanking.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ using namespace constraints;
2525
// Statistics
2626
//===----------------------------------------------------------------------===//
2727
#define DEBUG_TYPE "Constraint solver overall"
28-
STATISTIC(NumDiscardedSolutions, "# of solutions discarded");
28+
STATISTIC(NumDiscardedSolutions, "Number of solutions discarded");
2929

3030
void ConstraintSystem::increaseScore(ScoreKind kind) {
3131
unsigned index = static_cast<unsigned>(kind);

0 commit comments

Comments
 (0)