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

@ -558,8 +558,8 @@ fn test_debugging_options_tracking_hash() {
tracked!(human_readable_cgu_names, true);
tracked!(inline_in_all_cgus, Some(true));
tracked!(inline_mir, Some(true));
tracked!(inline_mir_threshold, 123);
tracked!(inline_mir_hint_threshold, 123);
tracked!(inline_mir_threshold, Some(123));
tracked!(inline_mir_hint_threshold, Some(123));
tracked!(insert_sideeffect, true);
tracked!(instrument_coverage, true);
tracked!(instrument_mcount, true);