-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
ICE: broken mir with -Zunsound-mir-opts: simplify arm identity #78628
Comments
This is probably #77359 |
Hm, the issue is already a couple of weeks old while I was not able to reproduce this one a few days ago. |
This happens since a6403b0 🤔 |
This comment has been minimized.
This comment has been minimized.
|
Does it still ICE if you enable optimizations? |
It does, looks like it's still an ICE |
This (and #77359) no longer ICE since #95125, seems to be the case for any opt level cc @JakobDegen is that intentional or is #94177 still pending? |
This is only the case because the changes to MIR make that opt completely broken and just never fire under any circumstances. #94177 needs to be revised because of that change, but the plan is still for it to fix these bugs for real |
Delete `SimplifyArmIdentity` and `SimplifyBranchSame` mir opts I had attempted to fix the first of these opts in rust-lang#94177 . However, despite that PR already being a full re-write, it still did not fix some of the core soundness issues. The optimizations that are attempted here are likely to be desirable, but I do not expect any of the currently written code to survive into a sound implementation. Deleting the code keeps us from having to maintain the passes in the meantime. Closes rust-lang#77359 , closes rust-lang#72800 , closes rust-lang#78628 r? `@cjgillot`
Delete `SimplifyArmIdentity` and `SimplifyBranchSame` mir opts I had attempted to fix the first of these opts in rust-lang#94177 . However, despite that PR already being a full re-write, it still did not fix some of the core soundness issues. The optimizations that are attempted here are likely to be desirable, but I do not expect any of the currently written code to survive into a sound implementation. Deleting the code keeps us from having to maintain the passes in the meantime. Closes rust-lang#77359 , closes rust-lang#72800 , closes rust-lang#78628 r? ``@cjgillot``
Code
from
./src/test/ui/mir/issue-77359-simplify-arm-identity.rs
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: