Skip to content

Commit 3536406

Browse files
committed
Use cdsort for reordering functions with BOLT
1 parent 0ff8610 commit 3536406

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/ci/docker/host-x86_64/dist-x86_64-linux/build-clang.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ set -ex
44

55
source shared.sh
66

7-
LLVM=llvmorg-17.0.4
7+
#LLVM=llvmorg-17.0.4
8+
LLVM=f5e50b21da0cb543064b2d0b9304ce0b368cf2bb
89

910
mkdir llvm-project
1011
cd llvm-project

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ 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")
6868
// Split as many basic blocks as possible

0 commit comments

Comments
 (0)