-
Notifications
You must be signed in to change notification settings - Fork 13.6k
MIR-build: No longer emit assumes in enum-as casting #144389
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
Conversation
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
MIR-build: No longer emit assumes in enum-as casting
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (a7398bc): comparison URL. Overall result: ❌✅ regressions and improvements - please read the text belowBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @bors rollup=never Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary -0.5%, secondary 0.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 2.2%, secondary 3.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary -0.1%, secondary -0.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 468.582s -> 467.881s (-0.15%) |
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 seems reasonable to me
Obviously assuming you can get it to pass CI |
0f4bef6
to
db94062
Compare
This comment has been minimized.
This comment has been minimized.
This just uses the `valid_range` from the backend, so it's duplicating the range metadata that now we include on parameters and loads.
db94062
to
01524ab
Compare
This comment was marked as resolved.
This comment was marked as resolved.
Looks like avoiding calling layout like this while we're still in the middle of MIR building also fixed an ICE (and simplified a cycle error). So that's probably also a good reason to do this change -- if anyone wants to do something similar later, it'd probably be best done with a MIR optimization pass, rather than as part of building the MIR, since optimization-related stuff like this isn't relevant to analysis-phase MIR. @bors r=davidtwco |
☀️ Test successful - checks-actions |
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing 246733a (parent) -> b56aaec (this PR) Test differencesShow 8 test diffsStage 1
Stage 2
Additionally, 4 doctest diffs were found. These are ignored, as they are noisy. Job group index
Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard b56aaec52bc0fa35591a872fb4aac81f606e265c --output-dir test-dashboard And then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
Finished benchmarking commit (b56aaec): comparison URL. Overall result: ❌✅ regressions and improvements - please read the text belowOur benchmarks found a performance regression caused by this PR. Next Steps:
@rustbot label: +perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary -0.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeResults (primary -0.1%, secondary -0.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 469.69s -> 469.891s (0.04%) |
Relevant upstream PRs: - rust-lang/rust#144389 (MIR-build: No longer emit assumes in enum-as casting) - rust-lang/rust#144392 (rustc_public: Remove movability from `RigidTy/AggregateKind::Coroutine`) - rust-lang/rust#144377 (Rename impl_of_method and trait_of_item) Resolves: model-checking#4246
Relevant upstream PRs: - rust-lang/rust#144389 (MIR-build: No longer emit assumes in enum-as casting) - rust-lang/rust#144392 (rustc_public: Remove movability from `RigidTy/AggregateKind::Coroutine`) - rust-lang/rust#144377 (Rename impl_of_method and trait_of_item) Resolves: #4246 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.
Relevant upstream PRs: - rust-lang/rust#144389 (MIR-build: No longer emit assumes in enum-as casting) - rust-lang/rust#144392 (rustc_public: Remove movability from `RigidTy/AggregateKind::Coroutine`) - rust-lang/rust#144377 (Rename impl_of_method and trait_of_item) Resolves: #4246 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.
Relevant upstream PRs: - rust-lang/rust#144389 (MIR-build: No longer emit assumes in enum-as casting) - rust-lang/rust#144392 (rustc_public: Remove movability from `RigidTy/AggregateKind::Coroutine`) - rust-lang/rust#144377 (Rename impl_of_method and trait_of_item) Resolves: model-checking#4246 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.
Relevant upstream PRs: - rust-lang/rust#144389 (MIR-build: No longer emit assumes in enum-as casting) - rust-lang/rust#144392 (rustc_public: Remove movability from `RigidTy/AggregateKind::Coroutine`) - rust-lang/rust#144377 (Rename impl_of_method and trait_of_item) Resolves: model-checking#4246 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.
This just uses the
valid_range
from the backend, so it's duplicating the range metadata that now we include on parameters and loads, and thus no longer seems to be useful -- notably there's no codegen test failures from removing it.(Because it's using data from the same source as the backend annotations, it doesn't do anything to mitigate things like #144388 where the range in the layout is more permissive than the actual possible discriminants. A variant of this that actually checked the discriminants more specifically might be useful, so could potentially be added in future, but I don't think the current checks are actually providing value.)
r? mir
Randomly turns out that this
Fixes #121097