-
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
interpret: fix projecting into an unsized field of a local #114483
Conversation
Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri The Miri subtree was changed cc @rust-lang/miri |
I just hope this doesn't make the common case slower... |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit c537c711d246eb520f28a016e9317cafc29190fa with merge e18b52482e83fec0935bfec040206b4b22635df3... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (e18b52482e83fec0935bfec040206b4b22635df3): comparison URL. Overall result: ❌ regressions - no 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. @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.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 649.27s -> 649.317s (0.01%) |
Seems okay, but I still have an idea for how to make this nicer I think. @rustbot author |
c537c71
to
d954940
Compare
Yes that's much better I think. :) |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit d954940d491ff84a23633959a48422694c41769a with merge 318fd52a4c504aa30078a558987b4cb839ef7712... |
&self, | ||
offset: Size, | ||
meta: MemPlaceMeta<Prov>, | ||
layout: TyAndLayout<'tcx>, | ||
cx: &impl HasDataLayout, | ||
ecx: &InterpCx<'mir, 'tcx, M>, |
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.
Technically I could now undo the part of the change that passes InterpCx
to offset
. However, that will be needed anyway for #114330, so I figured I'd keep it.
ee239a6
to
ba5b3ff
Compare
@bors try |
⌛ Trying commit ba5b3ffc703805330b0a276bc15a8f5241e5fa9a with merge 72d7fd2d8b316ddc594019335e96c533b30c56e2... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (b3fb7c702107951922ea0057feeb0610a32f5781): comparison URL. Overall result: ❌ regressions - no 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. @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: 632.38s -> 634.36s (0.31%) |
Wow those seem to be really hot code paths. Well that's good to know :)
|
5a0865d
to
c3bfcd5
Compare
new invariant: Place::Local never refers to something unsized
…argument passing this entirely avoids even creating unsized locals in Immediate::Uninitialized state
c3bfcd5
to
6d1ce9b
Compare
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (26089ba): comparison URL. Overall result: ❌✅ regressions and improvements - 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: 632.146s -> 631.943s (-0.03%) |
That actually looks better than expected, I didn't expect speedups at all based on the last benchmarks in the PR.^^ Regressions only affect our ctfe stress test, so it's likely some exaggerated consequence of a tiny change. |
@rustbot label: +perf-regression-triaged |
See the new Miri testcase that didn't work before.
r? @oli-obk