Skip to content
/ rust Public
forked from rust-lang/rust

Commit 6b4ec09

Browse files
committed
Remove usage of --use-old-text for BOLT
1 parent 8838c73 commit 6b4ec09

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

+6-1
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,13 @@ pub fn bolt_optimize(path: &Utf8Path, profile: &LlvmBoltProfile) -> anyhow::Resu
6565
.arg("-jump-tables=move")
6666
// Fold functions with identical code
6767
.arg("-icf=1")
68+
// The following flag saves about 50 MiB of libLLVM.so size.
69+
// However, it succeeds very non-deterministically. To avoid frequent artifact size swings,
70+
// it is kept disabled for now.
71+
// FIXME(kobzol): try to re-enable this once BOLT in-place rewriting is merged or after
72+
// we bump LLVM.
6873
// Try to reuse old text segments to reduce binary size
69-
.arg("--use-old-text")
74+
// .arg("--use-old-text")
7075
// Update DWARF debug info in the final binary
7176
.arg("-update-debug-sections")
7277
// Print optimization statistics

0 commit comments

Comments
 (0)