diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2020-11-11 20:59:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-11 20:59:03 +0100 |
| commit | 919177f7e42f7585bbc8353b942a0feb1b67705e (patch) | |
| tree | edf72a25387af0820651526be41e679a13fed9a3 /compiler/rustc_session/src | |
| parent | 2e0a0b42adb53969752a1848630a0849e35c873c (diff) | |
| parent | c8943c62f7a139b466648249045d557259cf22fe (diff) | |
| download | rust-919177f7e42f7585bbc8353b942a0feb1b67705e.tar.gz rust-919177f7e42f7585bbc8353b942a0feb1b67705e.zip | |
Rollup merge of #78873 - tmiasko:inline-opts, r=oli-obk
Add flags customizing behaviour of MIR inlining * `-Zinline-mir-threshold` to change the default threshold. * `-Zinline-mir-hint-threshold` to change the threshold used by functions with inline hint. Having those as configurable flags makes it possible to experiment with with different inlining thresholds and substantially increase test coverage of MIR inlining when used with increased thresholds (for example, necessary to test #78844).
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/options.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index ceed730e25b..1cd3d11e321 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -929,6 +929,10 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options, (default: no)"), incremental_verify_ich: bool = (false, parse_bool, [UNTRACKED], "verify incr. comp. hashes of green query instances (default: no)"), + inline_mir_threshold: usize = (50, parse_uint, [TRACKED], + "a default MIR inlining threshold (default: 50)"), + inline_mir_hint_threshold: usize = (100, parse_uint, [TRACKED], + "inlining threshold for functions with inline hint (default: 100)"), inline_in_all_cgus: Option<bool> = (None, parse_opt_bool, [TRACKED], "control whether `#[inline]` functions are in all CGUs"), input_stats: bool = (false, parse_bool, [UNTRACKED], |
