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

Re-enable removal of ZST writes to unions #105229

Merged
merged 1 commit into from
Dec 6, 2022

Conversation

saethlin
Copy link
Member

@saethlin saethlin commented Dec 3, 2022

This was previously disabled because Miri was lazily allocating unsized locals. But we aren't doing that anymore since #98831, so we can have this optimization back.

@rustbot
Copy link
Collaborator

rustbot commented Dec 3, 2022

r? @oli-obk

(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 Dec 3, 2022
@rust-log-analyzer

This comment has been minimized.

@saethlin saethlin force-pushed the zst-writes-to-unions branch from b19ed13 to 74a270a Compare December 4, 2022 00:17
@saethlin
Copy link
Member Author

saethlin commented Dec 4, 2022

@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 Dec 4, 2022
@bors
Copy link
Contributor

bors commented Dec 4, 2022

⌛ Trying commit 74a270a with merge 53891f0fb5f6e157c950856141fa558eff4051d1...

@bors
Copy link
Contributor

bors commented Dec 4, 2022

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

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (53891f0fb5f6e157c950856141fa558eff4051d1): comparison URL.

Overall result: ❌ regressions - 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 is a highly reliable metric that was used to determine the overall result at the top of this comment.

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

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)
2.9% [2.1%, 3.7%] 3
Regressions ❌
(secondary)
2.4% [1.9%, 2.8%] 2
Improvements ✅
(primary)
-1.2% [-2.3%, -0.1%] 2
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 1.3% [-2.3%, 3.7%] 5

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)
-1.3% [-1.8%, -0.8%] 13
Improvements ✅
(secondary)
-2.8% [-3.6%, -1.4%] 13
All ❌✅ (primary) -1.3% [-1.8%, -0.8%] 13

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Dec 4, 2022
@saethlin
Copy link
Member Author

saethlin commented Dec 4, 2022

@rust-timer build 53891f0fb5f6e157c950856141fa558eff4051d1 include=deep-vector

@saethlin
Copy link
Member Author

saethlin commented Dec 5, 2022

🤷 I suppose the singular "significant" regression is probably noise? I can't imagine how this change would regress exactly that one benchmark.

@saethlin saethlin marked this pull request as ready for review December 5, 2022 05:55
@rustbot
Copy link
Collaborator

rustbot commented Dec 5, 2022

Some changes occurred to MIR optimizations

cc @rust-lang/wg-mir-opt

@oli-obk
Copy link
Contributor

oli-obk commented Dec 5, 2022

@bors r+ rollup=never

@bors
Copy link
Contributor

bors commented Dec 5, 2022

📌 Commit 74a270a 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 Dec 5, 2022
@bors
Copy link
Contributor

bors commented Dec 6, 2022

⌛ Testing commit 74a270a with merge e60fbaf...

@bors
Copy link
Contributor

bors commented Dec 6, 2022

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

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Dec 6, 2022
@bors bors merged commit e60fbaf into rust-lang:master Dec 6, 2022
@rustbot rustbot added this to the 1.67.0 milestone Dec 6, 2022
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (e60fbaf): comparison URL.

Overall result: ✅ improvements - no action needed

@rustbot label: -perf-regression

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.4% [-0.6%, -0.3%] 4
All ❌✅ (primary) - - 0

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)
2.1% [1.2%, 3.7%] 3
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-3.2% [-3.2%, -3.2%] 1
Improvements ✅
(secondary)
-2.4% [-2.4%, -2.4%] 1
All ❌✅ (primary) 0.8% [-3.2%, 3.7%] 4

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)
- - 0
Improvements ✅
(secondary)
-2.1% [-2.1%, -2.1%] 1
All ❌✅ (primary) - - 0

Aaron1011 pushed a commit to Aaron1011/rust that referenced this pull request Jan 6, 2023
…-obk

Re-enable removal of ZST writes to unions

This was previously disabled because Miri was lazily allocating unsized locals. But we aren't doing that anymore since  rust-lang#98831, so we can have this optimization back.
@saethlin saethlin deleted the zst-writes-to-unions branch March 15, 2023 00:34
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.

6 participants