Skip to content

Commit f61179f

Browse files
authored
[CodeLayout] Changed option names cds to cdsort (#69668)
Renaming cds-> cdsort for consistency. This is NFC unless somebody uses older names
1 parent 7cfac1b commit f61179f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

llvm/lib/Transforms/Utils/CodeLayout.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,23 +115,23 @@ static cl::opt<double> MaxMergeDensityRatio(
115115
"ext-tsp-max-merge-density-ratio", cl::ReallyHidden, cl::init(100),
116116
cl::desc("The maximum ratio between densities of two chains for merging"));
117117

118-
// Algorithm-specific options for CDS.
119-
static cl::opt<unsigned> CacheEntries("cds-cache-entries", cl::ReallyHidden,
118+
// Algorithm-specific options for CDSort.
119+
static cl::opt<unsigned> CacheEntries("cdsort-cache-entries", cl::ReallyHidden,
120120
cl::desc("The size of the cache"));
121121

122-
static cl::opt<unsigned> CacheSize("cds-cache-size", cl::ReallyHidden,
122+
static cl::opt<unsigned> CacheSize("cdsort-cache-size", cl::ReallyHidden,
123123
cl::desc("The size of a line in the cache"));
124124

125125
static cl::opt<unsigned>
126126
CDMaxChainSize("cdsort-max-chain-size", cl::ReallyHidden,
127127
cl::desc("The maximum size of a chain to create"));
128128

129129
static cl::opt<double> DistancePower(
130-
"cds-distance-power", cl::ReallyHidden,
130+
"cdsort-distance-power", cl::ReallyHidden,
131131
cl::desc("The power exponent for the distance-based locality"));
132132

133133
static cl::opt<double> FrequencyScale(
134-
"cds-frequency-scale", cl::ReallyHidden,
134+
"cdsort-frequency-scale", cl::ReallyHidden,
135135
cl::desc("The scale factor for the frequency-based locality"));
136136

137137
namespace {
@@ -1028,8 +1028,8 @@ class ExtTSPImpl {
10281028
std::vector<ChainT *> HotChains;
10291029
};
10301030

1031-
/// The implementation of the Cache-Directed Sort (CDS) algorithm for ordering
1032-
/// functions represented by a call graph.
1031+
/// The implementation of the Cache-Directed Sort (CDSort) algorithm for
1032+
/// ordering functions represented by a call graph.
10331033
class CDSortImpl {
10341034
public:
10351035
CDSortImpl(const CDSortConfig &Config, ArrayRef<uint64_t> NodeSizes,

0 commit comments

Comments
 (0)