-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Disable nrvo mir opt #111007
Disable nrvo mir opt #111007
Conversation
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
Should we remove this pass entirely, and let dest-prop do it instead? |
If it were on by default, yes. Until then, I'm not so sure |
@bors r+ rollup=never |
📌 Commit 74d9567c3eb52f3cb0ba748e285eab860f507013 has been approved by It is now in the queue for this repository. |
⌛ Testing commit 74d9567c3eb52f3cb0ba748e285eab860f507013 with merge 76faaae3124d4f4ecf5310e32c27f65d768dbfc9... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
@bors r+ |
📌 Commit 02d4c2f4e5d7bf06f2100a2f7cc3b5f4c0828d1b has been approved by It is now in the queue for this repository. |
⌛ Testing commit 02d4c2f4e5d7bf06f2100a2f7cc3b5f4c0828d1b with merge 0bd1485d726d4b5f29d0ce904b3a1c7540f060ac... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (dfe3188): 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: 656.767s -> 658.118s (0.21%) |
Lots of regressions here. It sure would be nice if these could be regained, via dest-prop or any other means. |
Fortify and re-enable RNVO MIR opt Fixes rust-lang#111005 Fixes rust-lang#110902 This PR re-enables NRVO opt that had been disabled in rust-lang#111007 To look for RVO opportunities, we walk the MIR backwards from `return` terminators. In addition to the former implementation, we look at all the traversed statements and terminators for writes. If a local is written-to or moved-from, we discard it from the RVO candidates (`assigned_locals` bitset). If we see an indirect write or move, we discard all borrowed locals from candidates. cc `@JakobDegen`
See #111005 and #110902 . The ICE can definitely be hit on stable, the miscompilation I'm not sure about. The pass makes some pretty sketchy assumptions though, and we should not have it on while that's the case.
I'm not going to work on actually fixing this, it's probably not excessively difficult though.
r? rust-lang/mir-opt