-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Disable two mir opts that are known to be unsound #112834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @cjgillot (or someone else) soon. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
📌 Commit 8a482b37249f2d4d48c13fbc68eb8f26666190d5 has been approved by It is now in the queue for this repository. |
@@ -28,7 +28,7 @@ pub struct ConstGoto; | |||
|
|||
impl<'tcx> MirPass<'tcx> for ConstGoto { | |||
fn is_enabled(&self, sess: &rustc_session::Session) -> bool { | |||
sess.mir_opt_level() >= 2 | |||
sess.mir_opt_level() >= 2 && sess.opts.unstable_opts.unsound_mir_opts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to link to some form of explanation of what is unsound here.
8a482b3
to
346078e
Compare
@bors r=cjgillot |
📌 Commit 346078eb210462f34e95e4f8333c827ebf9a43be has been approved by It is now in the queue for this repository. |
⌛ Testing commit 346078eb210462f34e95e4f8333c827ebf9a43be with merge 8e9e75dfca891216eb4b90b49e750f3122cc7e9d... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
346078e
to
c409f05
Compare
@bors r=cjgillot |
☀️ Test successful - checks-actions |
Finished benchmarking commit (38b44eb): comparison URL. Overall result: ❌ regressions - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Bootstrap: 657.151s -> 659.034s (0.29%) |
closes #112460 (does not fix the underlying issue)
r? @cjgillot