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

Don't grab variances in TypeRelating relation if we're invariant #121864

Merged
merged 1 commit into from
Mar 2, 2024

Conversation

compiler-errors
Copy link
Member

@compiler-errors compiler-errors commented Mar 1, 2024

Since Invariant.xform(var) = Invariant always, so just copy what the generalizer relation does.

Fixes #110106

@rustbot
Copy link
Collaborator

rustbot commented Mar 1, 2024

r? @petrochenkov

rustbot has assigned @petrochenkov.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@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 Mar 1, 2024
@rustbot
Copy link
Collaborator

rustbot commented Mar 1, 2024

Type relation code was changed

cc @compiler-errors, @lcnr

@compiler-errors
Copy link
Member Author

r? types

@bors try @rust-timer queue

@rustbot rustbot added the T-types Relevant to the types team, which will review and decide on the PR/issue. label Mar 1, 2024
@rustbot rustbot assigned spastorino and unassigned petrochenkov Mar 1, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 1, 2024
…ces, r=<try>

Don't grab variances in `TypeRelating` relation if we're invariant

Since `Invariant.xform(var) = Invariant` always, so just copy what the generalizer relation does.

Fixes rust-lang#110106
@bors
Copy link
Contributor

bors commented Mar 1, 2024

⌛ Trying commit cb7c9cc with merge b4af5d3...

@matthiaskrgr
Copy link
Member

test? :3

@compiler-errors
Copy link
Member Author

@bors try

@matthiaskrgr
Copy link
Member

:D thanks

bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 1, 2024
…ces, r=<try>

Don't grab variances in `TypeRelating` relation if we're invariant

Since `Invariant.xform(var) = Invariant` always, so just copy what the generalizer relation does.

Fixes rust-lang#110106
@bors
Copy link
Contributor

bors commented Mar 1, 2024

⌛ Trying commit 003b920 with merge 0d1a7a6...

@bors
Copy link
Contributor

bors commented Mar 1, 2024

☀️ Try build successful - checks-actions
Build commit: 0d1a7a6 (0d1a7a61cfc7888b02654021b7e17531d87aedfc)

@compiler-errors
Copy link
Member Author

@rust-timer build 0d1a7a6

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (0d1a7a6): 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)
2.9% [2.9%, 2.9%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.5% [-0.9%, -0.1%] 12
Improvements ✅
(secondary)
-0.4% [-0.6%, -0.3%] 11
All ❌✅ (primary) -0.3% [-0.9%, 2.9%] 13

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

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

Binary size

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

Bootstrap: 651.67s -> 651.019s (-0.10%)
Artifact size: 311.10 MiB -> 311.21 MiB (0.03%)

@rustbot rustbot added the perf-regression Performance regression. label Mar 2, 2024
@compiler-errors
Copy link
Member Author

Oh cool, so this fixes most of the regressions. The syn benchmark regression looks noisy.

@aliemjay
Copy link
Member

aliemjay commented Mar 2, 2024

r? aliemjay
@bors r+ rollup=never

@bors
Copy link
Contributor

bors commented Mar 2, 2024

📌 Commit 003b920 has been approved by aliemjay

It is now in the queue for this repository.

@rustbot rustbot assigned aliemjay and unassigned spastorino Mar 2, 2024
@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 Mar 2, 2024
@bors
Copy link
Contributor

bors commented Mar 2, 2024

⌛ Testing commit 003b920 with merge 2e3581b...

@bors
Copy link
Contributor

bors commented Mar 2, 2024

☀️ Test successful - checks-actions
Approved by: aliemjay
Pushing 2e3581b to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Mar 2, 2024
@bors bors merged commit 2e3581b into rust-lang:master Mar 2, 2024
12 checks passed
@rustbot rustbot added this to the 1.78.0 milestone Mar 2, 2024
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (2e3581b): 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.2% [0.2%, 0.2%] 1
Improvements ✅
(primary)
-0.6% [-0.8%, -0.2%] 11
Improvements ✅
(secondary)
-0.5% [-0.6%, -0.4%] 8
All ❌✅ (primary) -0.6% [-0.8%, -0.2%] 11

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)
5.8% [5.8%, 5.8%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 5.8% [5.8%, 5.8%] 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: 653.837s -> 652.002s (-0.28%)
Artifact size: 175.50 MiB -> 175.52 MiB (0.01%)

@lqd
Copy link
Member

lqd commented Mar 2, 2024

The ucd benchmark looked noisy in the last couple PRs. I'll wait a bit to see if it returns to steady-state before marking this triaged.

@lqd
Copy link
Member

lqd commented Mar 3, 2024

Let's see what weekly triage also think, but to me it looks noisy: by now it's back to close to the level preceding this PR.

image

@Mark-Simulacrum
Copy link
Member

I think it's probably a new baseline? Zooming in a bit:

image

But I think it's fairly minor and in incr-unchanged, so I'm inclined to mark as triaged.

@Mark-Simulacrum Mark-Simulacrum added the perf-regression-triaged The performance regression has been triaged. label Mar 5, 2024
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. T-types Relevant to the types team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ICE: cycle detected when computing function signature of
10 participants