Skip to content

Commit e67a236

Browse files
committed
Restore -split-all-cold and remove peepholes based on feedback
1 parent 4ebb694 commit e67a236

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ pub fn bolt_optimize(path: &Utf8Path, profile: &BoltProfile) -> anyhow::Result<(
6666
// Split function code into hot and code regions
6767
.arg("-split-functions")
6868
// Split as many basic blocks as possible
69+
.arg("-split-all-cold")
70+
// Move jump tables to a separate section
6971
.arg("-jump-tables=move")
7072
// Fold functions with identical code
7173
.arg("-icf=1")
@@ -76,8 +78,6 @@ pub fn bolt_optimize(path: &Utf8Path, profile: &BoltProfile) -> anyhow::Result<(
7678
// Inline functions smaller than 32 bytes
7779
.arg("-inline-small-functions")
7880
.arg("-inline-small-functions-bytes=32")
79-
// Perform peephole optimizations
80-
.arg("-peepholes=all")
8181
// The following flag saves about 50 MiB of libLLVM.so size.
8282
// However, it succeeds very non-deterministically. To avoid frequent artifact size swings,
8383
// it is kept disabled for now.

0 commit comments

Comments
 (0)