Skip to content

Commit af67575

Browse files
author
spupyrev
committed
[BOLT][NFC] Rename cds to cdsort
1 parent e6c0e85 commit af67575

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bolt/include/bolt/Passes/ReorderFunctions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ReorderFunctions : public BinaryFunctionPass {
3232
RT_EXEC_COUNT,
3333
RT_HFSORT,
3434
RT_HFSORT_PLUS,
35-
RT_CDS,
35+
RT_CDSORT,
3636
RT_PETTIS_HANSEN,
3737
RT_RANDOM,
3838
RT_USER

bolt/lib/Passes/ReorderFunctions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ cl::opt<bolt::ReorderFunctions::ReorderType> ReorderFunctions(
4242
"use hfsort algorithm"),
4343
clEnumValN(bolt::ReorderFunctions::RT_HFSORT_PLUS, "hfsort+",
4444
"use hfsort+ algorithm"),
45-
clEnumValN(bolt::ReorderFunctions::RT_CDS, "cds",
45+
clEnumValN(bolt::ReorderFunctions::RT_CDSORT, "cdsort",
4646
"use cache-directed sort"),
4747
clEnumValN(bolt::ReorderFunctions::RT_PETTIS_HANSEN,
4848
"pettis-hansen", "use Pettis-Hansen algorithm"),
@@ -322,7 +322,7 @@ void ReorderFunctions::runOnFunctions(BinaryContext &BC) {
322322
case RT_HFSORT_PLUS:
323323
Clusters = hfsortPlus(Cg);
324324
break;
325-
case RT_CDS: {
325+
case RT_CDSORT: {
326326
// It is required that the sum of incoming arc weights is not greater
327327
// than the number of samples for every function. Ensuring the call graph
328328
// obeys the property before running the algorithm.

0 commit comments

Comments
 (0)