-
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
Separate generator info from MIR body. #101547
Conversation
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt This PR changes MIR cc @oli-obk, @RalfJung, @JakobDegen, @davidtwco, @celinval, @vakaras |
(rust-highfive has picked a reviewer for you, use r? to override) |
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.
I did a quick read over this and it looks good to me! I left a few comments with some questions just to make sure I'm understanding things right.
See the documentation on Do we even still need |
Also note that this PR removes a couple stale files from the mir-opt tests. That was my fault, it's fixed on master though, so should be fine if you rebase. |
/// | ||
/// Furthermore, `Copy` operands are allowed for non-`Copy` types. | ||
GeneratorsLowered = 2, | ||
Optimized = 3, |
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.
This needs a doc comment (that's pre-existing though, so probably material for a different PR).
7fa8fe3
to
8a39cd7
Compare
I don't understand your comment. Does this mean it has to change the variant of
I've put back the transformation to its original position. This avoids introducing an additional query. |
8a39cd7
to
40fec1d
Compare
This comment has been minimized.
This comment has been minimized.
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 04c480cf368292bf263ab75600d90e73dada2751 with merge d3f203dbddcb1d3835cbc318a73f4725d8dd540d... |
☀️ Try build successful - checks-actions |
Queued d3f203dbddcb1d3835cbc318a73f4725d8dd540d with parent 8778809, future comparison URL. |
Finished benchmarking commit (d3f203dbddcb1d3835cbc318a73f4725d8dd540d): comparison URL. Overall result: ❌ regressions - ACTION NEEDEDBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never 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.
Footnotes |
cf4e601
to
4d2a59f
Compare
☔ The latest upstream changes (presumably #101086) made this pull request unmergeable. Please resolve the merge conflicts. |
@cjgillot sorry I haven't been keeping up with this PR -- not sure if I'm qualified to make the call about whether to accept the perf regression. Do others have thoughts? (@JakobDegen @eholk to name a few people already involved in this PR) |
@compiler-errors this PR only really makes sense in the context of #99782 or #101692. Without those PRs, there is no reason to pay the perf cost of this one. I'd suggest we stall this PR on a decision on those. |
4d2a59f
to
9f701dc
Compare
e97d611
to
b35a02d
Compare
☔ The latest upstream changes (presumably #103172) made this pull request unmergeable. Please resolve the merge conflicts. |
b35a02d
to
85e3f0b
Compare
☔ The latest upstream changes (presumably #102340) made this pull request unmergeable. Please resolve the merge conflicts. |
bbaac41
to
1c93a2f
Compare
1c93a2f
to
fa1b622
Compare
Marking as blocked until an update is provided about plans for this -- specifically, still waiting on #101692? |
This PR waits for a decision on #101692. |
Split from #99782.
cc @JakobDegen does the splitting make sense with your recent refactor of MIR phases.
cc @eholk this should make the late generator analysis easier to work with.