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
65
65
. arg ( "-jump-tables=move" )
66
66
// Fold functions with identical code
67
67
. 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.
68
73
// Try to reuse old text segments to reduce binary size
69
- . arg ( "--use-old-text" )
74
+ // .arg("--use-old-text")
70
75
// Update DWARF debug info in the final binary
71
76
. arg ( "-update-debug-sections" )
72
77
// Print optimization statistics
You can’t perform that action at this time.
0 commit comments