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

Turn on ConstDebugInfo pass. #107404

Merged
merged 3 commits into from
Apr 23, 2023
Merged

Turn on ConstDebugInfo pass. #107404

merged 3 commits into from
Apr 23, 2023

Conversation

cjgillot
Copy link
Contributor

@cjgillot cjgillot commented Jan 28, 2023

Split from #103657

Moving those constant into debuginfo allows to shrink the number of locals and the actual size of the MIR body.

@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 Jan 28, 2023
@cjgillot
Copy link
Contributor Author

@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 Jan 28, 2023
@bors
Copy link
Contributor

bors commented Jan 28, 2023

⌛ Trying commit 01e364ee80f8a6569ffd131f1eaa6cbdd1e2df37 with merge d908afcacb9fa8badcf4d4fb4355dfa77efb81d4...

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Jan 28, 2023

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

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (d908afcacb9fa8badcf4d4fb4355dfa77efb81d4): comparison URL.

Overall result: ❌✅ regressions and improvements - 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)
3.8% [3.8%, 3.8%] 1
Improvements ✅
(primary)
-0.9% [-0.9%, -0.9%] 1
Improvements ✅
(secondary)
-0.8% [-1.2%, -0.4%] 2
All ❌✅ (primary) -0.9% [-0.9%, -0.9%] 1

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.8% [2.8%, 2.8%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-3.3% [-3.4%, -3.2%] 2
Improvements ✅
(secondary)
-1.5% [-2.0%, -1.3%] 3
All ❌✅ (primary) -1.3% [-3.4%, 2.8%] 3

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.9% [-0.9%, -0.9%] 1
Improvements ✅
(secondary)
-2.5% [-2.5%, -2.5%] 1
All ❌✅ (primary) -0.9% [-0.9%, -0.9%] 1

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jan 28, 2023
@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Feb 6, 2023

☔ The latest upstream changes (presumably #107727) made this pull request unmergeable. Please resolve the merge conflicts.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@cjgillot cjgillot marked this pull request as ready for review February 25, 2023 18:41
@rustbot
Copy link
Collaborator

rustbot commented Feb 25, 2023

Some changes occurred to MIR optimizations

cc @rust-lang/wg-mir-opt

@cjgillot
Copy link
Contributor Author

r? compiler

@oli-obk
Copy link
Contributor

oli-obk commented Feb 28, 2023

Tiny, but consistent, regression in debug mode binary size (https://perf.rust-lang.org/compare.html?start=252741673b9c2b06267cd3a036d77489e92f963a&end=d908afcacb9fa8badcf4d4fb4355dfa77efb81d4&stat=size%3Alinked_artifact), but that's ok, just a bit of debuginfo shuffling.

@bors r+

@bors
Copy link
Contributor

bors commented Feb 28, 2023

📌 Commit f15c14f2d6888da6bf4356bb2ab090ee6a658f9b 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 Feb 28, 2023
@bors
Copy link
Contributor

bors commented Feb 28, 2023

⌛ Testing commit f15c14f2d6888da6bf4356bb2ab090ee6a658f9b with merge 2c15a814665491718d25a12f8a6473bfbf6f628a...

@bors
Copy link
Contributor

bors commented Feb 28, 2023

💔 Test failed - checks-actions

@bors
Copy link
Contributor

bors commented Apr 20, 2023

⌛ Testing commit 9e90b1ce4a3a71ed6a96d7c5dd61f49db449224f with merge 030b021e1cb3550907c2fa68a2df58e2d4ba836c...

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Apr 20, 2023

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Apr 20, 2023
@cjgillot
Copy link
Contributor Author

@bors r=oli-obk

@bors
Copy link
Contributor

bors commented Apr 23, 2023

📌 Commit b8c67d8 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 Apr 23, 2023
@bors
Copy link
Contributor

bors commented Apr 23, 2023

⌛ Testing commit b8c67d8 with merge 9e540df...

@bors
Copy link
Contributor

bors commented Apr 23, 2023

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

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Apr 23, 2023
@bors bors merged commit 9e540df into rust-lang:master Apr 23, 2023
@rustbot rustbot added this to the 1.71.0 milestone Apr 23, 2023
@cjgillot cjgillot deleted the const-debuginfo branch April 23, 2023 13:34
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (9e540df): comparison URL.

Overall result: ❌✅ regressions and improvements - ACTION NEEDED

Next Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please open an issue or create a new PR that fixes the regressions, add a comment linking to the newly created issue or PR, and then add the perf-regression-triaged label to this PR.

@rustbot label: +perf-regression
cc @rust-lang/wg-compiler-performance

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.4% [0.2%, 0.7%] 12
Regressions ❌
(secondary)
0.4% [0.4%, 0.4%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.3% [-0.3%, -0.3%] 2
All ❌✅ (primary) 0.4% [0.2%, 0.7%] 12

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)
3.3% [0.8%, 6.1%] 3
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 3.3% [0.8%, 6.1%] 3

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)
1.0% [1.0%, 1.0%] 1
Regressions ❌
(secondary)
3.1% [3.1%, 3.1%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-11.6% [-14.3%, -5.5%] 4
All ❌✅ (primary) 1.0% [1.0%, 1.0%] 1

@nnethercote
Copy link
Contributor

@oli-obk: the post-merge results look quite different. Any idea why?

@oli-obk
Copy link
Contributor

oli-obk commented Apr 25, 2023

Well, we add more info to debuginfo, it could be that LLVM now shuffles codegen units differently or just randomly takes more time. We'll need to see if these benchmarks had a single bump or if they are now more noisy.

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

MIR-inlined functions called with constants should put the constant in debug info
9 participants