-
Notifications
You must be signed in to change notification settings - Fork 13.4k
make PlaceholderConst
not store the type of the const
#100032
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
r? @estebank (rust-highfive has picked a reviewer for you, use r? to override) |
i was always confused why this ty was stored twice in constkind... |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 49d001c with merge c2f4c0cd4fd72ff97cdb105e3b869619de400589... |
☀️ Try build successful - checks-actions |
Queued c2f4c0cd4fd72ff97cdb105e3b869619de400589 with parent c9e134e, future comparison URL. |
Finished benchmarking commit (c2f4c0cd4fd72ff97cdb105e3b869619de400589): comparison url. Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results
CyclesResults
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking 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 Footnotes |
@BoxyUwU: r=me unless you want someone else's review specifically! This is totally worth landing just for the code simplification, even if there's no perf impact. |
@bors r=compiler-errors |
☀️ Test successful - checks-actions |
Finished benchmarking commit (06f4950): comparison url. Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results
CyclesResults
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression Footnotes |
Currently the
Placeholder
variant onConstKind
is 28 bytes when with this PR its 8 bytes, i am not sure this is really useful at all rn sinceUnevaluated
andValue
variants are huge still but eventually it should be possible to get both down to 16 bytes 🤔. Mostly opening this to see if this change has any perf impact when done before it can makeConstKind
/ConstS
smaller