Skip to content

Commit 67efbd0

Browse files
authored
[LLVM] Fix various cl::desc typos and whitespace issues (NFC) (llvm#121955)
1 parent 303249c commit 67efbd0

24 files changed

+55
-52
lines changed

llvm/lib/Analysis/ScalarEvolution.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ static cl::opt<unsigned> RangeIterThreshold(
226226

227227
static cl::opt<unsigned> MaxLoopGuardCollectionDepth(
228228
"scalar-evolution-max-loop-guard-collection-depth", cl::Hidden,
229-
cl::desc("Maximum depth for recrusive loop guard collection"), cl::init(1));
229+
cl::desc("Maximum depth for recursive loop guard collection"), cl::init(1));
230230

231231
static cl::opt<bool>
232232
ClassifyExpressions("scalar-evolution-classify-expressions",

llvm/lib/CodeGen/CodeGenPrepare.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ static cl::opt<bool>
152152

153153
static cl::opt<bool>
154154
EnableAndCmpSinking("enable-andcmp-sinking", cl::Hidden, cl::init(true),
155-
cl::desc("Enable sinkinig and/cmp into branches."));
155+
cl::desc("Enable sinking and/cmp into branches."));
156156

157157
static cl::opt<bool> DisableStoreExtract(
158158
"disable-cgp-store-extract", cl::Hidden, cl::init(false),

llvm/lib/CodeGen/MIRSampleProfile.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ static cl::opt<bool> ShowFSBranchProb(
4646
cl::desc("Print setting flow sensitive branch probabilities"));
4747
static cl::opt<unsigned> FSProfileDebugProbDiffThreshold(
4848
"fs-profile-debug-prob-diff-threshold", cl::init(10),
49-
cl::desc("Only show debug message if the branch probility is greater than "
50-
"this value (in percentage)."));
49+
cl::desc(
50+
"Only show debug message if the branch probability is greater than "
51+
"this value (in percentage)."));
5152

5253
static cl::opt<unsigned> FSProfileDebugBWThreshold(
5354
"fs-profile-debug-bw-threshold", cl::init(10000),

llvm/lib/CodeGen/MachineBlockPlacement.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ static cl::opt<unsigned> JumpInstCost("jump-inst-cost",
149149
static cl::opt<bool>
150150
TailDupPlacement("tail-dup-placement",
151151
cl::desc("Perform tail duplication during placement. "
152-
"Creates more fallthrough opportunites in "
152+
"Creates more fallthrough opportunities in "
153153
"outline branches."),
154154
cl::init(true), cl::Hidden);
155155

llvm/lib/CodeGen/MachineBranchProbabilityInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace llvm {
2929
cl::opt<unsigned>
3030
StaticLikelyProb("static-likely-prob",
3131
cl::desc("branch probability threshold in percentage"
32-
"to be considered very likely"),
32+
" to be considered very likely"),
3333
cl::init(80), cl::Hidden);
3434

3535
cl::opt<unsigned> ProfileLikelyProb(

llvm/lib/CodeGen/RegAllocGreedy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static cl::opt<bool> GreedyReverseLocalAssignment(
140140
static cl::opt<unsigned> SplitThresholdForRegWithHint(
141141
"split-threshold-for-reg-with-hint",
142142
cl::desc("The threshold for splitting a virtual register with a hint, in "
143-
"percentate"),
143+
"percentage"),
144144
cl::init(75), cl::Hidden);
145145

146146
static RegisterRegAlloc greedyRegAlloc("greedy", "greedy register allocator",

llvm/lib/CodeGen/RegisterCoalescer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ static cl::opt<unsigned> LargeIntervalSizeThreshold(
113113

114114
static cl::opt<unsigned> LargeIntervalFreqThreshold(
115115
"large-interval-freq-threshold", cl::Hidden,
116-
cl::desc("For a large interval, if it is coalesed with other live "
116+
cl::desc("For a large interval, if it is coalesced with other live "
117117
"intervals many times more than the threshold, stop its "
118118
"coalescing to control the compile time. "),
119119
cl::init(256));

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ static cl::opt<bool> EnableReduceLoadOpStoreWidth(
141141
static cl::opt<bool> ReduceLoadOpStoreWidthForceNarrowingProfitable(
142142
"combiner-reduce-load-op-store-width-force-narrowing-profitable",
143143
cl::Hidden, cl::init(false),
144-
cl::desc("DAG combiner force override the narrowing profitable check when"
144+
cl::desc("DAG combiner force override the narrowing profitable check when "
145145
"reducing the width of load/op/store sequences"));
146146

147147
static cl::opt<bool> EnableShrinkLoadReplaceStoreWithStore(

llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ static cl::opt<int> MaxReorderWindow(
125125
cl::desc("Number of instructions to allow ahead of the critical path "
126126
"in sched=list-ilp"));
127127

128-
static cl::opt<unsigned> AvgIPC(
129-
"sched-avg-ipc", cl::Hidden, cl::init(1),
130-
cl::desc("Average inst/cycle whan no target itinerary exists."));
128+
static cl::opt<unsigned>
129+
AvgIPC("sched-avg-ipc", cl::Hidden, cl::init(1),
130+
cl::desc("Average inst/cycle when no target itinerary exists."));
131131

132132
namespace {
133133

llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ STATISTIC(LoadsClustered, "Number of loads clustered together");
4343
// without a target itinerary. The choice of number here has more to do with
4444
// balancing scheduler heuristics than with the actual machine latency.
4545
static cl::opt<int> HighLatencyCycles(
46-
"sched-high-latency-cycles", cl::Hidden, cl::init(10),
47-
cl::desc("Roughly estimate the number of cycles that 'long latency'"
48-
"instructions take for targets with no itinerary"));
46+
"sched-high-latency-cycles", cl::Hidden, cl::init(10),
47+
cl::desc("Roughly estimate the number of cycles that 'long latency' "
48+
"instructions take for targets with no itinerary"));
4949

5050
ScheduleDAGSDNodes::ScheduleDAGSDNodes(MachineFunction &mf)
5151
: ScheduleDAG(mf), InstrItins(mf.getSubtarget().getInstrItineraryData()) {}

0 commit comments

Comments
 (0)