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

Merge return place with other locals in CopyProp. #111556

Merged
merged 2 commits into from
May 17, 2023

Conversation

cjgillot
Copy link
Contributor

This reintroduces a limited form of NRVO.

r? wg-mir-opt

@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 May 14, 2023
@rustbot
Copy link
Collaborator

rustbot commented May 14, 2023

Some changes occurred to MIR optimizations

cc @rust-lang/wg-mir-opt

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

bors commented May 14, 2023

⌛ Trying commit adfffc7 with merge 25984defd09ad4efb985e5c958c79799a1c14c2a...

@bors
Copy link
Contributor

bors commented May 14, 2023

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

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (25984defd09ad4efb985e5c958c79799a1c14c2a): comparison URL.

Overall result: ❌✅ regressions and improvements - 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.

Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please fix the regressions and do another perf run. If the next run shows neutral or positive results, the label will be automatically removed.

@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.7% [0.7%, 0.7%] 1
Regressions ❌
(secondary)
0.5% [0.5%, 0.5%] 1
Improvements ✅
(primary)
-0.4% [-0.6%, -0.3%] 6
Improvements ✅
(secondary)
-0.7% [-0.8%, -0.5%] 6
All ❌✅ (primary) -0.3% [-0.6%, 0.7%] 7

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% [2.1%, 2.1%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-2.7% [-4.2%, -2.1%] 5
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -1.9% [-4.2%, 2.1%] 6

Cycles

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

Binary size

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.1% [0.0%, 0.4%] 15
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.3% [-1.8%, -0.0%] 41
Improvements ✅
(secondary)
-0.1% [-0.2%, -0.0%] 12
All ❌✅ (primary) -0.2% [-1.8%, 0.4%] 56

Bootstrap: 659.942s -> 658.168s (-0.27%)

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels May 14, 2023
@oli-obk
Copy link
Contributor

oli-obk commented May 16, 2023

r? @oli-obk
@bors r+

@bors
Copy link
Contributor

bors commented May 16, 2023

📌 Commit adfffc7 has been approved by oli-obk

It is now in the queue for this repository.

@rustbot rustbot assigned oli-obk and unassigned wesleywiser May 16, 2023
@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 May 16, 2023
@bors
Copy link
Contributor

bors commented May 16, 2023

⌛ Testing commit adfffc7 with merge 5c3a336...

@bors
Copy link
Contributor

bors commented May 17, 2023

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

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label May 17, 2023
@bors bors merged commit 5c3a336 into rust-lang:master May 17, 2023
@rustbot rustbot added this to the 1.71.0 milestone May 17, 2023
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (5c3a336): 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
Regressions ❌
(secondary)
0.4% [0.4%, 0.4%] 2
Improvements ✅
(primary)
-0.4% [-0.7%, -0.2%] 17
Improvements ✅
(secondary)
-0.8% [-0.9%, -0.7%] 4
All ❌✅ (primary) -0.4% [-0.7%, -0.2%] 17

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.4% [2.3%, 2.4%] 2
Regressions ❌
(secondary)
2.4% [2.4%, 2.4%] 1
Improvements ✅
(primary)
-2.8% [-4.9%, -1.1%] 3
Improvements ✅
(secondary)
-1.0% [-1.0%, -1.0%] 1
All ❌✅ (primary) -0.7% [-4.9%, 2.4%] 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)
2.6% [2.6%, 2.6%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Binary size

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.1% [0.0%, 0.4%] 15
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.3% [-1.8%, -0.0%] 41
Improvements ✅
(secondary)
-0.1% [-0.2%, -0.0%] 12
All ❌✅ (primary) -0.2% [-1.8%, 0.4%] 56

Bootstrap: 644.432s -> 642.96s (-0.23%)

@nnethercote
Copy link
Contributor

The improvements greatly outweigh the tiny number of regressions. Nice result.

@rustbot label: +perf-regression-triaged

@rustbot rustbot added the perf-regression-triaged The performance regression has been triaged. label May 17, 2023
@cjgillot cjgillot deleted the copy-prop-nrvo branch May 17, 2023 08: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. perf-regression Performance regression. perf-regression-triaged The performance regression has been triaged. 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