Skip to content

Commit a9434d2

Browse files
author
spupyrev
committed
[BOLT] Deprecating hfsort+ in favor of cdsort
1 parent 0daf303 commit a9434d2

File tree

4 files changed

+16
-627
lines changed

4 files changed

+16
-627
lines changed

bolt/include/bolt/Passes/HFSort.h

+3-9
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@
99
// Implementation of HFSort algorithm for function ordering:
1010
// https://research.fb.com/wp-content/uploads/2017/01/cgo2017-hfsort-final1.pdf
1111
//
12-
// Cluster functions by hotness. There are four clustering algorithms:
12+
// Cluster functions by hotness. There are three clustering algorithms:
1313
// 1. clusterize
14-
// 2. HFsort+
15-
// 3. pettisAndHansen
16-
// 4. randomClusters
14+
// 2. pettisAndHansen
15+
// 3. randomClusters
1716
//
1817
//===----------------------------------------------------------------------===//
1918

@@ -81,11 +80,6 @@ inline bool compareClustersDensity(const Cluster &C1, const Cluster &C2) {
8180
*/
8281
std::vector<Cluster> clusterize(const CallGraph &Cg);
8382

84-
/*
85-
* Optimize function placement prioritizing i-TLB and i-cache performance.
86-
*/
87-
std::vector<Cluster> hfsortPlus(CallGraph &Cg);
88-
8983
/*
9084
* Pettis-Hansen code layout algorithm
9185
* reference: K. Pettis and R. C. Hansen, "Profile Guided Code Positioning",

bolt/lib/Passes/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ add_llvm_library(LLVMBOLTPasses
1616
FixRelaxationPass.cpp
1717
FixRISCVCallsPass.cpp
1818
HFSort.cpp
19-
HFSortPlus.cpp
2019
Hugify.cpp
2120
IdenticalCodeFolding.cpp
2221
IndirectCallPromotion.cpp

0 commit comments

Comments
 (0)