-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
JumpThreading: fix bitwise not on non-booleans #131203
base: master
Are you sure you want to change the base?
Conversation
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
eb99fae
to
fd35e82
Compare
Thanks! @bors r+ |
…piler-errors JumpThreading: fix bitwise not on non-booleans Fixes rust-lang#131195 Alternative to rust-lang#131201
This comment has been minimized.
This comment has been minimized.
Ok, well, this definitely causes a crash when building lock_api@0.4.12 @bors r- Let's actually land #131201, which is a more conservative fix. Then we can work on improving the jumpthreading optimization :) Since cjgillot authored the jump threading optimization (I think?) I can pass this off to them. r? @cjgillot |
Looks like some miscompile in std 🤔 In my local testing I get println hanging on |
I am very curious to learn what is wrong with this PR :D |
☔ The latest upstream changes (presumably #131201) made this pull request unmergeable. Please resolve the merge conflicts. |
@bors r- |
4416842
to
3ccfe76
Compare
Threaded |
The r? @cjgillot |
This comment has been minimized.
This comment has been minimized.
24db849
to
122417c
Compare
@clubby789 I'm not convinced by the second commit. If we get an interpreter error, we should only abort the current backwards walk, not the whole pass. |
122417c
to
a234e70
Compare
Do they actually cause a bug? Do you have a reproducer? |
iirc all instances that I looked at seemed to be fine, and changing them to return None instead caused issues |
For the correctness in case of interpreter failure. |
Sorry, I'm not quite sure what you mean here. Do you want additional changes? |
☔ The latest upstream changes (presumably #132460) made this pull request unmergeable. Please resolve the merge conflicts. |
Fixes #131195
Alternative to #131201