-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Bump optimization from mir_opt_level 2 to 3 and 3 to 4 and make "release" be level 2 by default #82736
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
3699ed9
to
10d0109
Compare
This comment has been minimized.
This comment has been minimized.
I'm a bit worried about changing meaning of these while retaining numbers - maybe we should rename the various levels (e.g., NoOpt, SoundOpts, UnsoundOpts, ...?) |
This comment has been minimized.
This comment has been minimized.
cc @rust-lang/wg-mir-opt This is a stopgap solution to quickly be able to test out changing the meaning of mir-opt-level=2 to mean "automatically on in release mode". As already mentioned, the proper fix is to rebase and fix up #77665 |
Bumping the mir-opt-level for levels >= 2 could only affect users of mir-opt-level >= 2, so it seems fine to me. Though, if you do so, please update tests as well. How would a pass manager use mir-opt-level & opt-level to enable passes, and what is stopping us from using equivalent approach now? |
Yea, i do realize now my suggestion is completely orthogonal to changing these levels. It's just more painful/messy to do without the pass manager. Replacing the numeric levels with an enum sounds like a really good idea. |
This comment has been minimized.
This comment has been minimized.
0d3c28e
to
0550a6f
Compare
This comment has been minimized.
This comment has been minimized.
@bors r+ |
📌 Commit cbb40e1 has been approved by |
@bors r=oli-obk |
📌 Commit 18fb025 has been approved by |
@bors rollup=always |
…es, r=oli-obk Bump optimization from mir_opt_level 2 to 3 and 3 to 4 and make "release" be level 2 by default r? `@oli-obk`
@GuillaumeGomez yeah, checking locally and will push a fix in a couple of minutes ... |
I'll wait before making another rollup then. ;) |
18fb025
to
11d9390
Compare
@bors r=oli-obk rollup=always |
📌 Commit 11d9390 has been approved by |
…laumeGomez Rollup of 7 pull requests Successful merges: - rust-lang#80845 (Make ItemKind::ExternCrate looks like hir::ItemKind::ExternCrate to make transition over hir::ItemKind simpler) - rust-lang#82708 (Warn on `#![doc(test(...))]` on items other than the crate root and use future incompatible lint) - rust-lang#82714 (Detect match arm body without braces) - rust-lang#82736 (Bump optimization from mir_opt_level 2 to 3 and 3 to 4 and make "release" be level 2 by default) - rust-lang#82782 (Make rustc shim's verbose output include crate_name being compiled.) - rust-lang#82797 (Update tests names to start with `issue-`) - rust-lang#82809 (rustdoc: Use substrings instead of split to grab enum variant paths) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
mir-opt-level 4 is the new 3 cc rust-lang/rust#82736
…es, r=oli-obk Bump optimization from mir_opt_level 2 to 3 and 3 to 4 and make "release" be level 2 by default r? `@oli-obk`
r? @oli-obk