-
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
revert mir inlining policy for beta-1.64 #101050
revert mir inlining policy for beta-1.64 #101050
Conversation
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
(rust-highfive has picked a reviewer for you, use r? to override) |
|
I had to locally disable src/test/codegen/mem-replace-direct-memcpy.rs to get my test suite to pass when trying this locally, regardless of whether I was testing stage 1 or stage 2. I assume this is because of #99619 |
@pnkfelix you might need to disable and/or bless mem-replace-direct-memcpy because it looks like it's angry on CI too. r=me when CI is green though. |
This comment has been minimized.
This comment has been minimized.
Yeah, I'm going to throw away that test on beta. It is just trying to ensure that the stdlib has no inefficient intermediate calls starting from |
You can just revert the MIR inlining PR. It changes the test just like many other tests because it gets inlined now, I don't see how all the other changed tests could pass. (Oh, wait, I see, some of them just got Still, I would try using |
@eddyb I'll do that as a follow-up activity, for now I just want to get this in. (note that we're not making this change on nightly, just on beta, so I would argue that there is very little risk of this performance regression leaking back in.. but still, I can put a little time into it next week.) |
@bors r=compiler-errors |
IIRC it's not even a performance regression, I think Rust-GPU needed to avoid some dynamism in terms of The main thing I wanted to express is that if the goal is to "disable MIR inlining" and the only test that appears to observe that difference is this one, it should be reverted so that it can act as a "canary" for MIR inlining being disabled. (I would even prefer if it wasn't this test, but it seems that most codegen tests just disable MIR optimizations now, which makes some sense but it's suboptimal for actually testing, well, MIR inlining, or other MIR optimizations) |
@bors r- (more testing was brought up in Zulip PM, taking it out of the queue for now) |
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.
At the very least it would be good to include this reduction as a test:
Oh and maybe some of this will pass on beta? (But I'm not sure what the status is)
As far as I can tell, the examples in that ticket are not relevant to (or at least are not exposed by) the change in MIR inlining policy... |
… that we are reverting for 1.64-beta.
@bors r=compiler-errors |
@bors rollup=never |
@bors p=1 Resolves P-critical issue in beta. |
☀️ Test successful - checks-actions |
revert mir inlining policy for beta-1.64
Fix #101004