Skip to content

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

Merged
merged 2 commits into from
Aug 2, 2022

Conversation

BoxyUwU
Copy link
Member

@BoxyUwU BoxyUwU commented Aug 1, 2022

Currently the Placeholder variant on ConstKind is 28 bytes when with this PR its 8 bytes, i am not sure this is really useful at all rn since Unevaluated and Value 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 make ConstKind/ConstS smaller

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Aug 1, 2022
@rust-highfive
Copy link
Contributor

r? @estebank

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 1, 2022
@compiler-errors
Copy link
Member

i was always confused why this ty was stored twice in constkind...

@BoxyUwU
Copy link
Member Author

BoxyUwU commented Aug 1, 2022

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Aug 1, 2022
@bors
Copy link
Collaborator

bors commented Aug 1, 2022

⌛ Trying commit 49d001c with merge c2f4c0cd4fd72ff97cdb105e3b869619de400589...

@bors
Copy link
Collaborator

bors commented Aug 1, 2022

☀️ Try build successful - checks-actions
Build commit: c2f4c0cd4fd72ff97cdb105e3b869619de400589 (c2f4c0cd4fd72ff97cdb105e3b869619de400589)

@rust-timer
Copy link
Collaborator

Queued c2f4c0cd4fd72ff97cdb105e3b869619de400589 with parent c9e134e, future comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (c2f4c0cd4fd72ff97cdb105e3b869619de400589): comparison url.

Instruction count

This benchmark run did not return any relevant results for this metric.

Max RSS (memory usage)

Results
  • Primary benchmarks: 🎉 relevant improvement found
  • Secondary benchmarks: 🎉 relevant improvement found
mean1 max count2
Regressions 😿
(primary)
N/A N/A 0
Regressions 😿
(secondary)
N/A N/A 0
Improvements 🎉
(primary)
-2.3% -2.3% 1
Improvements 🎉
(secondary)
-3.0% -3.0% 1
All 😿🎉 (primary) -2.3% -2.3% 1

Cycles

Results
  • Primary benchmarks: 😿 relevant regression found
  • Secondary benchmarks: no relevant changes found
mean1 max count2
Regressions 😿
(primary)
3.0% 3.0% 1
Regressions 😿
(secondary)
N/A N/A 0
Improvements 🎉
(primary)
N/A N/A 0
Improvements 🎉
(secondary)
N/A N/A 0
All 😿🎉 (primary) 3.0% 3.0% 1

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
@rustbot label: +S-waiting-on-review -S-waiting-on-perf -perf-regression

Footnotes

  1. the arithmetic mean of the percent change 2

  2. number of relevant changes 2

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Aug 1, 2022
@compiler-errors
Copy link
Member

compiler-errors commented Aug 2, 2022

@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.

@BoxyUwU
Copy link
Member Author

BoxyUwU commented Aug 2, 2022

@bors r=compiler-errors

@bors
Copy link
Collaborator

bors commented Aug 2, 2022

📌 Commit 49d001c has been approved by compiler-errors

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 2, 2022
@bors
Copy link
Collaborator

bors commented Aug 2, 2022

⌛ Testing commit 49d001c with merge 06f4950...

@bors
Copy link
Collaborator

bors commented Aug 2, 2022

☀️ Test successful - checks-actions
Approved by: compiler-errors
Pushing 06f4950 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Aug 2, 2022
@bors bors merged commit 06f4950 into rust-lang:master Aug 2, 2022
@rustbot rustbot added this to the 1.64.0 milestone Aug 2, 2022
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (06f4950): comparison url.

Instruction count

This benchmark run did not return any relevant results for this metric.

Max RSS (memory usage)

Results
  • Primary benchmarks: 🎉 relevant improvement found
  • Secondary benchmarks: no relevant changes found
mean1 max count2
Regressions 😿
(primary)
N/A N/A 0
Regressions 😿
(secondary)
N/A N/A 0
Improvements 🎉
(primary)
-3.8% -3.8% 1
Improvements 🎉
(secondary)
N/A N/A 0
All 😿🎉 (primary) -3.8% -3.8% 1

Cycles

Results
  • Primary benchmarks: no relevant changes found
  • Secondary benchmarks: 😿 relevant regression found
mean1 max count2
Regressions 😿
(primary)
N/A N/A 0
Regressions 😿
(secondary)
6.2% 6.2% 1
Improvements 🎉
(primary)
N/A N/A 0
Improvements 🎉
(secondary)
N/A N/A 0
All 😿🎉 (primary) N/A N/A 0

If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf.

@rustbot label: -perf-regression

Footnotes

  1. the arithmetic mean of the percent change 2

  2. number of relevant changes 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants