-
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
interpret: avoid a long-lived PlaceTy in stack frames #121985
Conversation
Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri |
Let's see if this has a perf impact. @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
…try> interpret: avoid a long-lived PlaceTy in stack frames `PlaceTy` uses a representation that's not very stable under changes to the stack. I'd feel better if we didn't have one in the long-term machine state. r? `@oli-obk`
This now shows up as "pending" in the queue, even though it never got approved... for avoidance of doubt: |
Let's try closing and reopening |
Or uh... a retry? That usually kicks a merge job. @bors retry |
Cool it's gone |
Okay let's get our try build going again then. @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
…try> interpret: avoid a long-lived PlaceTy in stack frames `PlaceTy` uses a representation that's not very stable under changes to the stack. I'd feel better if we didn't have one in the long-term machine state. r? `@oli-obk`
☀️ Try build successful - checks-actions |
1 similar comment
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Ah that's why this felt so familiar... I made a similar experiment last year already: #113964. Damn. I think I still don't understand why these return places are so hot though... |
Finished benchmarking commit (96f5a38): 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.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 645.218s -> 642.92s (-0.36%) |
That's a lot better than the last one. Only primary regression is in a Might be acceptable for improved interpreter maintainability? |
The Miri subtree was changed cc @rust-lang/miri Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
Pushing this change in return place type through the rest of the interpreter, I found some things in Miri that definitely should not use OTOH this also changes the return place to @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
…try> interpret: avoid a long-lived PlaceTy in stack frames `PlaceTy` uses a representation that's not very stable under changes to the stack. I'd feel better if we didn't have one in the long-term machine state. r? `@oli-obk`
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (ee3afb2): 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.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 643.087s -> 642.263s (-0.13%) |
Seems like doing this also for intrinsics doesn't cost anything extra. :) That way we can keep the foreign-item and intrinsic paths consistent. |
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (52f8aec): 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 sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 648.501s -> 647.761s (-0.11%) |
@rustbot label: +perf-regression-triaged |
PlaceTy
uses a representation that's not very stable under changes to the stack. I'd feel better if we didn't have one in the long-term machine state.r? @oli-obk