File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments