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

struct_target_features: cache feature computation. #129783

Closed
wants to merge 1 commit into from

Conversation

veluca93
Copy link
Contributor

This commit moves the type-recursion to a query, causing it to be cached and (hopefully!)
fixing the instruction-count regression from #127537.

r? compiler-errors

Tracking issue: #129107

@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 Aug 30, 2024
@compiler-errors
Copy link
Member

@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 Aug 30, 2024
@bors
Copy link
Contributor

bors commented Aug 30, 2024

⌛ Trying commit 047d34e with merge 294ee31...

bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 30, 2024
struct_target_features: cache feature computation.

This commit moves the type-recursion to a query, causing it to be cached and (hopefully!)
fixing the instruction-count regression from rust-lang#127537.

r? compiler-errors

Tracking issue: rust-lang#129107
@bors
Copy link
Contributor

bors commented Aug 30, 2024

☀️ Try build successful - checks-actions
Build commit: 294ee31 (294ee31103c9139068c2e8ace1922c8d2065a19c)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (294ee31): 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.4% [0.4%, 0.4%] 1
Regressions ❌
(secondary)
1.4% [0.3%, 7.8%] 7
Improvements ✅
(primary)
-0.5% [-0.6%, -0.3%] 3
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -0.3% [-0.6%, 0.4%] 4

Max RSS (memory usage)

Results (primary -0.5%, secondary -0.8%)

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% [0.4%, 2.5%] 12
Regressions ❌
(secondary)
0.6% [0.4%, 0.9%] 10
Improvements ✅
(primary)
-0.8% [-2.1%, -0.4%] 65
Improvements ✅
(secondary)
-0.9% [-3.3%, -0.4%] 109
All ❌✅ (primary) -0.5% [-2.1%, 2.5%] 77

Cycles

Results (primary 0.2%, secondary 0.1%)

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.2% [0.4%, 6.8%] 19
Regressions ❌
(secondary)
1.1% [0.4%, 6.4%] 60
Improvements ✅
(primary)
-1.1% [-2.5%, -0.5%] 14
Improvements ✅
(secondary)
-1.0% [-3.0%, -0.4%] 55
All ❌✅ (primary) 0.2% [-2.5%, 6.8%] 33

Binary size

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

Bootstrap: 788.226s -> 786.615s (-0.20%)
Artifact size: 338.74 MiB -> 338.75 MiB (0.00%)

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Aug 30, 2024
@veluca93 veluca93 closed this Sep 2, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 2, 2024
Implement struct_target_features for non-generic functions.

This PR implements a first version of RFC 3525. In particular, the current code does not handle structs with target features being passed to generic functions correctly.

This is a roll-up of rust-lang#129764, rust-lang#129783 and rust-lang#129764, which will hopefully result in a PR that does not introduce perf regressions in the first place.

r? Kobzol

Tracking issue: rust-lang#129107
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 2, 2024
Implement struct_target_features for non-generic functions.

This PR implements a first version of RFC 3525. In particular, the current code does not handle structs with target features being passed to generic functions correctly.

This is a roll-up of rust-lang#129764, rust-lang#129783 and rust-lang#129764, which will hopefully result in a PR that does not introduce perf regressions in the first place.

r? Kobzol

Tracking issue: rust-lang#129107
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 10, 2024
Implement struct_target_features for non-generic functions.

This PR implements a first version of RFC 3525. In particular, the current code does not handle structs with target features being passed to generic functions correctly.

This is a roll-up of rust-lang#129764, rust-lang#129783 and rust-lang#129764, which will hopefully result in a PR that does not introduce perf regressions in the first place.

r? Kobzol

Tracking issue: rust-lang#129107
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 10, 2024
Implement struct_target_features for non-generic functions.

This PR implements a first version of RFC 3525. In particular, the current code does not handle structs with target features being passed to generic functions correctly.

This is a roll-up of rust-lang#129764, rust-lang#129783 and rust-lang#129764, which will hopefully result in a PR that does not introduce perf regressions in the first place.

r? Kobzol

Tracking issue: rust-lang#129107
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 13, 2024
Implement struct_target_features for non-generic functions.

This PR implements a first version of RFC 3525. In particular, the current code does not handle structs with target features being passed to generic functions correctly.

This is a roll-up of rust-lang#129764, rust-lang#129783 and rust-lang#129764, which will hopefully result in a PR that does not introduce perf regressions in the first place.

r? Kobzol

Tracking issue: rust-lang#129107
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 5, 2024
Implement struct_target_features.

This PR implements a first version of RFC 3525.

This is a roll-up of rust-lang#129764, rust-lang#129783 and rust-lang#129764, which will hopefully result in a PR that does not introduce perf regressions in the first place.

This PR also includes code to handle generics, unlike the original PR, since doing so influenced the design of the original PR significantly.

r? Kobzol

Tracking issue: rust-lang#129107
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 5, 2024
Implement struct_target_features.

This PR implements a first version of RFC 3525.

This is a roll-up of rust-lang#129764, rust-lang#129783 and rust-lang#129764, which will hopefully result in a PR that does not introduce perf regressions in the first place.

This PR also includes code to handle generics, unlike the original PR, since doing so influenced the design of the original PR significantly.

r? Kobzol

Tracking issue: rust-lang#129107
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
perf-regression Performance regression. 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants