-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
promote_consts: some clean-up after experimenting #125853
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
|
rustbot has assigned @matthewjasper. Use |
|
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
| unwind = { path = "../unwind" } | ||
| compiler_builtins = "0.1.0" | ||
| cfg-if = "1.0" | ||
| cfg-if = { version = "1.0", features = ['rustc-dep-of-std'] } |
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.
what is this change for?
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.
When building with x test test/mir-opt, I noticed that std keeps rebuilding after no changes in it.
Setting CARGO_LOG=cargo::core::compiler::fingerprint=info, it reveals a part of the problem
is that cfg-if built differently for panic_unwind and std.
Having said that, I try again with simple x build libary multiple times without this change,
std is not getting rebuilt when unchanged.
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'm happy to remove this diff if it adds noice.
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.
That's a good find, we should keep this change.
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
promote_consts: fail fast if there are no candidates
|
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (4020cf9): comparison URL. Overall result: no relevant changes - 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 benchmark run did not return any relevant results for this metric. Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesResults (secondary 9.1%)This 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: 667.575s -> 668.026s (0.07%) |
Wihout it, std keeps rebuiling when unchanged. But we could use `--keep-stage=1` to make it not rebuild.
There is no need to do it when mustn't.
9a1a5a2 to
45aa179
Compare
|
Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri |
dcad234 to
742cf52
Compare
742cf52 to
7002a3f
Compare
|
@bors r+ |
|
☀️ Test successful - checks-actions |
|
Finished benchmarking commit (5ced3da): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (secondary 2.0%)This 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.
CyclesResults (primary 4.6%)This 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 sizeResults (secondary -0.3%)This 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: 694.089s -> 694.66s (0.08%) |
This is some clean-up after experimenting in #125916,
Prefer to review commit-by-commit.