1
Fork 0

Use optional values for inlining thresholds

Turn inlining threshold into optional values to make it possible to
configure different defaults depending on the current mir-opt-level.
This commit is contained in:
Tomasz Miąsko 2021-02-21 00:00:00 +00:00
parent f895f1c35a
commit 500aeccc5b
3 changed files with 6 additions and 6 deletions

View file

@ -959,9 +959,9 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
"verify incr. comp. hashes of green query instances (default: no)"),
inline_mir: Option<bool> = (None, parse_opt_bool, [TRACKED],
"enable MIR inlining (default: no)"),
inline_mir_threshold: usize = (50, parse_uint, [TRACKED],
inline_mir_threshold: Option<usize> = (None, parse_opt_uint, [TRACKED],
"a default MIR inlining threshold (default: 50)"),
inline_mir_hint_threshold: usize = (100, parse_uint, [TRACKED],
inline_mir_hint_threshold: Option<usize> = (None, parse_opt_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"),