Skip to content

Commit

Permalink
[BOLT] Rename cds to cdsort (llvm#69966)
Browse files Browse the repository at this point in the history
Unify naming for the layout algorithms by renaming "cds" to "cdsort".
This is
NFC unless someone is already using the new algorithm (which is
unlikely).
  • Loading branch information
spupyrev authored Nov 2, 2023
1 parent e6c0e85 commit 287fcd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bolt/include/bolt/Passes/ReorderFunctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ReorderFunctions : public BinaryFunctionPass {
RT_EXEC_COUNT,
RT_HFSORT,
RT_HFSORT_PLUS,
RT_CDS,
RT_CDSORT,
RT_PETTIS_HANSEN,
RT_RANDOM,
RT_USER
Expand Down
4 changes: 2 additions & 2 deletions bolt/lib/Passes/ReorderFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ cl::opt<bolt::ReorderFunctions::ReorderType> ReorderFunctions(
"use hfsort algorithm"),
clEnumValN(bolt::ReorderFunctions::RT_HFSORT_PLUS, "hfsort+",
"use hfsort+ algorithm"),
clEnumValN(bolt::ReorderFunctions::RT_CDS, "cds",
clEnumValN(bolt::ReorderFunctions::RT_CDSORT, "cdsort",
"use cache-directed sort"),
clEnumValN(bolt::ReorderFunctions::RT_PETTIS_HANSEN,
"pettis-hansen", "use Pettis-Hansen algorithm"),
Expand Down Expand Up @@ -322,7 +322,7 @@ void ReorderFunctions::runOnFunctions(BinaryContext &BC) {
case RT_HFSORT_PLUS:
Clusters = hfsortPlus(Cg);
break;
case RT_CDS: {
case RT_CDSORT: {
// It is required that the sum of incoming arc weights is not greater
// than the number of samples for every function. Ensuring the call graph
// obeys the property before running the algorithm.
Expand Down

0 comments on commit 287fcd3

Please sign in to comment.