Repository navigation
Use LLVM option -disable-auto-upgrade-debug-info - #165836
Conversation
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
…r=<try> Use LLVM option `-disable-auto-upgrade-debug-info`
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (4eb0691): comparison URL. Overall result: ✅ improvements - no action neededBenchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up. @bors rollup=iffy rustc-perf Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 2.8%, secondary -3.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -4.1%, secondary -1.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 484.606s -> 482.646s (-0.40%) |
|
wow, it's a huge improvement! |
|
ripgrep is the only benchmark that sees improvements because it's the only one where release builds enable debuginfo. @nikic: what do you think of this change? Rust was specifically mentioned as a motivation when this flag was introduced. AIUI, disabling the auto upgrade would remove a level of protection against malformed debuginfo, which might be caused by compiler bugs. |
788e0d6 to
40a34d1
Compare
|
I have added a detailed comment that explains how this flag works, why it's ok to use for Rust, and the cases where it makes a difference. Because all of that is not obvious! |
| // | ||
| // Note that Rust was a motivating example in the design of this flag. See | ||
| // https://reviews.llvm.org/D143229. | ||
| add("-disable-auto-upgrade-debug-info", false); |
There was a problem hiding this comment.
Can you please use -auto-upgrade-debug-info=false instead on get_version() >= (24, 0, 0)? The option has been renamed, and while the alias -disable-auto-upgrade-debug-info will still work for a time, we should use the new name.
| // The LTO + debuginfo combination doesn't occur in the standard Rust profiles. It requires | ||
| // e.g. debuginfo to be enabled in a release build. (Release builds use thin-local LTO when | ||
| // more than one CGU is present.) But when that combination occurs this is a small | ||
| // compile-time win. The protection against malformed bitcode is also eliminated in that |
There was a problem hiding this comment.
| // The LTO + debuginfo combination doesn't occur in the standard Rust profiles. It requires | |
| // e.g. debuginfo to be enabled in a release build. (Release builds use thin-local LTO when | |
| // more than one CGU is present.) But when that combination occurs this is a small | |
| // compile-time win. The protection against malformed bitcode is also eliminated in that | |
| // This is a small compile-time win for release+debuginfo configurations. | |
| // The protection against malformed bitcode is also eliminated in that |
I feel like this is spelling out things that are obvious / not really relevant, but I won't insist...
It's a compile-time win for builds involving debuginfo and LTO, such as a release build with debuginfo enabled. (`ripgrep` and `bors` are two examples of programs that use that configuration.)
40a34d1 to
78d4277
Compare
|
I addressed the two comments. |
|
@bors r+ |
…uwer Rollup of 11 pull requests Successful merges: - #165836 (Use LLVM option `-disable-auto-upgrade-debug-info`) - #164783 (callconv: mips64: match gcc for "alignment" of 16-byte-aligned ZSTs) - #166634 (do not lint `drop_bounds`, `dyn_drop`, `trivial_bounds` and const param names on items from external macros) - #166649 (abby dsl: minor refactor/cleanup) - #164628 (callconv: mips64: handle repr(transparent)) - #166387 (Remove diagnostics import list) - #166564 (miri: support statx syscall) - #166583 (abby dsl tests: the passing test should check-pass) - #166595 (specify target CPUs in 'powerpc-types.rs' assembly test) - #166640 (compiletest: Use an explicit argfile instead of ArgFileCommand) - #166646 (Fix reversed argument counts in Fn trait mismatch note)
Rollup merge of #165836 - nnethercote:disable-auto-upgrade-debug-info, r=nikic Use LLVM option `-disable-auto-upgrade-debug-info` It's a compile-time win for builds involving debuginfo and LTO, such as a release build with debuginfo enabled. (`ripgrep` and `bors` are two examples of programs that use that configuration.) r? @nikic
|
Note This PR was benchmarked as part of triage of its containing rollup: triage URL. Finished benchmarking commit (d58ffad): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 2.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesThis perf run didn't have relevant results for this metric. Binary sizeThis perf run didn't have relevant results for this metric. Artifact size: 405.64 MiB -> 405.59 MiB (-0.01%) |
…uwer Rollup of 11 pull requests Successful merges: - rust-lang/rust#165836 (Use LLVM option `-disable-auto-upgrade-debug-info`) - rust-lang/rust#164783 (callconv: mips64: match gcc for "alignment" of 16-byte-aligned ZSTs) - rust-lang/rust#166634 (do not lint `drop_bounds`, `dyn_drop`, `trivial_bounds` and const param names on items from external macros) - rust-lang/rust#166649 (abby dsl: minor refactor/cleanup) - rust-lang/rust#164628 (callconv: mips64: handle repr(transparent)) - rust-lang/rust#166387 (Remove diagnostics import list) - rust-lang/rust#166564 (miri: support statx syscall) - rust-lang/rust#166583 (abby dsl tests: the passing test should check-pass) - rust-lang/rust#166595 (specify target CPUs in 'powerpc-types.rs' assembly test) - rust-lang/rust#166640 (compiletest: Use an explicit argfile instead of ArgFileCommand) - rust-lang/rust#166646 (Fix reversed argument counts in Fn trait mismatch note)
It's a compile-time win for builds involving debuginfo and LTO, such as a release build with debuginfo enabled. (
ripgrepandborsare two examples of programs that use that configuration.)r? @nikic