Skip to content

Commit 9023f90

Browse files
committed
Auto merge of #119418 - aaupov:master, r=Kobzol
[BOLT] Use CDSort and CDSplit CDSort and CDSplit are the most recent versions of function ordering and function splitting algorithms with some improvements over the previous baseline (ext-tsp and two-way splitting).
2 parents 774ae59 + 13ef6d4 commit 9023f90

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tools/opt-dist/src/bolt.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,11 @@ pub fn bolt_optimize(path: &Utf8Path, profile: &BoltProfile) -> anyhow::Result<(
6262
// Reorder basic blocks within functions
6363
.arg("-reorder-blocks=ext-tsp")
6464
// Reorder functions within the binary
65-
.arg("-reorder-functions=hfsort+")
65+
.arg("-reorder-functions=cdsort")
6666
// Split function code into hot and code regions
6767
.arg("-split-functions")
68+
// Split using best available strategy (three-way splitting, Cache-Directed Sort)
69+
.arg("-split-strategy=cdsplit")
6870
// Split as many basic blocks as possible
6971
.arg("-split-all-cold")
7072
// Move jump tables to a separate section

0 commit comments

Comments
 (0)