mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-10 14:02:57 +00:00
Auto merge of #114141 - Kobzol:llvm-bolt-flags, r=lqd
Change LLVM BOLT flags I talked to the BOLT maintainers about the binary size effect of BOLT. Currently, BOLTing LLVM increases its binary size from ~120 MiB to ~170 MiB, which is not ideal. Now we can track both runtime performance and (rustc, LLVM, ...) artifact sizes in perf.RLO, so I'd like to try experimenting with changing the flags to reduce `libLLVM.so` size without regressing the performance gains of BOLT too much. r? `@ghost`
This commit is contained in:
commit
f45961b60d
@ -49,6 +49,8 @@ pub fn optimize_with_bolt(path: &Path, profile_path: &Path, output_path: &Path)
|
||||
.arg("-icf=1")
|
||||
// Update DWARF debug info in the final binary
|
||||
.arg("-update-debug-sections")
|
||||
// Try to reuse old text segments to reduce binary size
|
||||
.arg("--use-old-text")
|
||||
// Print optimization statistics
|
||||
.arg("-dyno-stats")
|
||||
.status()
|
||||
|
Loading…
Reference in New Issue
Block a user