Skip to content
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

consistently pass ty::Const through valtrees #115804

Merged
merged 4 commits into from Sep 14, 2023

Conversation

RalfJung
Copy link
Member

Some drive-by things extracted from #115748.

@rustbot
Copy link
Collaborator

rustbot commented Sep 12, 2023

r? @davidtwco

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Sep 12, 2023
@RalfJung RalfJung changed the title a bit of cleanup in valtree_to_const_value consistently pass ty::Const through valtrees Sep 14, 2023
@RalfJung
Copy link
Member Author

I rebased over #115803 and made this PR the logical next step -- consistently pass all ty::Const through valtrees, never short-cutting directly to a ConstValue.
r? @oli-obk

Let's see what perf says.
@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Sep 14, 2023
@bors
Copy link
Contributor

bors commented Sep 14, 2023

⌛ Trying commit 19fb2c7 with merge c7767b6...

bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 14, 2023
consistently pass ty::Const through valtrees

Some drive-by things extracted from rust-lang#115748.
@bors
Copy link
Contributor

bors commented Sep 14, 2023

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

1 similar comment
@bors
Copy link
Contributor

bors commented Sep 14, 2023

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

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (c7767b6): comparison URL.

Overall result: no relevant changes - no action needed

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-perf -perf-regression

Instruction count

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

Max RSS (memory usage)

Results

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.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-2.5% [-2.5%, -2.5%] 1
Improvements ✅
(secondary)
-0.6% [-0.6%, -0.6%] 2
All ❌✅ (primary) -2.5% [-2.5%, -2.5%] 1

Cycles

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

Binary size

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

Bootstrap: 631.545s -> 631.288s (-0.04%)
Artifact size: 317.98 MiB -> 318.00 MiB (0.01%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Sep 14, 2023
@RalfJung
Copy link
Member Author

That looks promising. :)

@oli-obk
Copy link
Contributor

oli-obk commented Sep 14, 2023

@bors r+

@bors
Copy link
Contributor

bors commented Sep 14, 2023

📌 Commit 19fb2c7 has been approved by oli-obk

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 Sep 14, 2023
@bors
Copy link
Contributor

bors commented Sep 14, 2023

⌛ Testing commit 19fb2c7 with merge e437e57...

@bors
Copy link
Contributor

bors commented Sep 14, 2023

☀️ Test successful - checks-actions
Approved by: oli-obk
Pushing e437e57 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Sep 14, 2023
@bors bors merged commit e437e57 into rust-lang:master Sep 14, 2023
12 checks passed
@rustbot rustbot added this to the 1.74.0 milestone Sep 14, 2023
@RalfJung RalfJung deleted the valtree-to-const-val branch September 14, 2023 21:17
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (e437e57): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

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

Cycles

Results

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.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-5.1% [-5.1%, -5.1%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -5.1% [-5.1%, -5.1%] 1

Binary size

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

Bootstrap: 630.976s -> 632.742s (0.28%)
Artifact size: 317.91 MiB -> 318.05 MiB (0.05%)

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.

None yet

6 participants