Skip to content

remove type traversal for mir constants #102355

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

Merged
merged 3 commits into from
Oct 17, 2022

Conversation

lcnr
Copy link
Contributor

@lcnr lcnr commented Sep 27, 2022

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Sep 27, 2022
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 27, 2022
@lcnr
Copy link
Contributor Author

lcnr commented Sep 27, 2022

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Sep 27, 2022
@bors
Copy link
Collaborator

bors commented Sep 27, 2022

⌛ Trying commit 3bf096e910e5505ac5ce5b763eed6a3e300f172b with merge c3a65989026d958631c9a396441824adfc0636a2...

@lcnr lcnr added the A-const-generics Area: const generics (parameters and arguments) label Sep 27, 2022
@bors
Copy link
Collaborator

bors commented Sep 27, 2022

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

@rust-timer
Copy link
Collaborator

Queued c3a65989026d958631c9a396441824adfc0636a2 with parent de0b511, future comparison URL.

@lcnr lcnr changed the title removal type traversal for mir constants remove type traversal for mir constants Sep 27, 2022
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (c3a65989026d958631c9a396441824adfc0636a2): 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-review -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.

mean1 range count2
Regressions ❌
(primary)
0.7% [0.6%, 0.8%] 7
Regressions ❌
(secondary)
1.2% [1.0%, 1.5%] 6
Improvements ✅
(primary)
-0.4% [-0.6%, -0.2%] 17
Improvements ✅
(secondary)
-2.0% [-3.5%, -0.5%] 13
All ❌✅ (primary) -0.1% [-0.6%, 0.8%] 24

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.

mean1 range count2
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
2.9% [1.7%, 4.1%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-3.0% [-3.0%, -3.0%] 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.

mean1 range count2
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-3.9% [-4.8%, -3.1%] 2
All ❌✅ (primary) - - 0

Footnotes

  1. the arithmetic mean of the percent change 2 3

  2. number of relevant changes 2 3

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Sep 27, 2022
@lcnr lcnr force-pushed the bye-bye-type-traversal branch from 3bf096e to fc8924e Compare September 29, 2022 10:42
@lcnr
Copy link
Contributor Author

lcnr commented Sep 29, 2022

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Sep 29, 2022
@bors
Copy link
Collaborator

bors commented Sep 29, 2022

⌛ Trying commit fc8924e274e4e5d667cce6e1520f7029e8f32100 with merge dbe57d7137cfc934695ee70d1a8f8196a646d707...

@bors
Copy link
Collaborator

bors commented Sep 29, 2022

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

@rust-timer
Copy link
Collaborator

Queued dbe57d7137cfc934695ee70d1a8f8196a646d707 with parent 8a497b7, future comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (dbe57d7137cfc934695ee70d1a8f8196a646d707): 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-review -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.

mean1 range count2
Regressions ❌
(primary)
0.7% [0.6%, 0.9%] 6
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.4% [-0.7%, -0.2%] 14
Improvements ✅
(secondary)
-1.5% [-2.1%, -0.4%] 18
All ❌✅ (primary) -0.1% [-0.7%, 0.9%] 20

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.

mean1 range count2
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
4.1% [3.5%, 4.6%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-1.7% [-2.4%, -0.9%] 2
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.

mean1 range count2
Regressions ❌
(primary)
3.7% [3.7%, 3.7%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-6.5% [-6.5%, -6.5%] 1
Improvements ✅
(secondary)
-3.3% [-4.1%, -2.6%] 2
All ❌✅ (primary) -1.4% [-6.5%, 3.7%] 2

Footnotes

  1. the arithmetic mean of the percent change 2 3

  2. number of relevant changes 2 3

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Sep 29, 2022
@lcnr lcnr force-pushed the bye-bye-type-traversal branch from 0328340 to 83792f6 Compare October 5, 2022 16:25
@lcnr lcnr closed this Oct 5, 2022
@lcnr lcnr reopened this Oct 5, 2022
@lcnr lcnr force-pushed the bye-bye-type-traversal branch from 83792f6 to 5906b39 Compare October 5, 2022 16:26
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (55e7418fe84f5fefb4ce380bcb4f6d4066a69d68): 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-review -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.

mean1 range count2
Regressions ❌
(primary)
0.7% [0.6%, 0.9%] 6
Regressions ❌
(secondary)
0.7% [0.5%, 0.9%] 6
Improvements ✅
(primary)
-0.5% [-1.4%, -0.3%] 15
Improvements ✅
(secondary)
-1.9% [-3.8%, -0.3%] 16
All ❌✅ (primary) -0.2% [-1.4%, 0.9%] 21

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.

mean1 range count2
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
1.7% [1.2%, 2.2%] 2
Improvements ✅
(primary)
-1.6% [-1.6%, -1.6%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -1.6% [-1.6%, -1.6%] 1

Cycles

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

Footnotes

  1. the arithmetic mean of the percent change 2

  2. number of relevant changes 2

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 6, 2022
@lcnr lcnr force-pushed the bye-bye-type-traversal branch from dd3e2aa to d04bff6 Compare October 17, 2022 10:01
@lcnr
Copy link
Contributor Author

lcnr commented Oct 17, 2022

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 17, 2022
@bors
Copy link
Collaborator

bors commented Oct 17, 2022

⌛ Trying commit d04bff6 with merge b26fc916212a48c91195f77cb3e4d654b68b4186...

@bors
Copy link
Collaborator

bors commented Oct 17, 2022

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

@rust-timer
Copy link
Collaborator

Queued b26fc916212a48c91195f77cb3e4d654b68b4186 with parent 1536ab1, future comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (b26fc916212a48c91195f77cb3e4d654b68b4186): comparison URL.

Overall result: ✅ 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-review -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.

mean1 range count2
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.4% [-0.8%, -0.2%] 41
Improvements ✅
(secondary)
-1.4% [-3.7%, -0.2%] 37
All ❌✅ (primary) -0.4% [-0.8%, -0.2%] 41

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.

mean1 range count2
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-2.6% [-4.1%, -2.0%] 9
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.

mean1 range count2
Regressions ❌
(primary)
2.1% [2.1%, 2.1%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 2.1% [2.1%, 2.1%] 1

Footnotes

  1. the arithmetic mean of the percent change 2 3

  2. number of relevant changes 2 3

@rustbot rustbot removed S-waiting-on-perf Status: Waiting on a perf run to be completed. perf-regression Performance regression. labels Oct 17, 2022
@lcnr
Copy link
Contributor Author

lcnr commented Oct 17, 2022

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

perf seems to be good now xx

@bors r=oli-obk

@bors
Copy link
Collaborator

bors commented Oct 17, 2022

📌 Commit d04bff6 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 Oct 17, 2022
@bors
Copy link
Collaborator

bors commented Oct 17, 2022

⌛ Testing commit d04bff6 with merge a9d1caf...

@bors
Copy link
Collaborator

bors commented Oct 17, 2022

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

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Oct 17, 2022
@bors bors merged commit a9d1caf into rust-lang:master Oct 17, 2022
@rustbot rustbot added this to the 1.66.0 milestone Oct 17, 2022
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (a9d1caf): 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.

mean1 range count2
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.4% [-0.8%, -0.2%] 36
Improvements ✅
(secondary)
-1.3% [-3.7%, -0.2%] 37
All ❌✅ (primary) -0.4% [-0.8%, -0.2%] 36

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.

mean1 range count2
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-3.1% [-6.9%, -2.1%] 17
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.

mean1 range count2
Regressions ❌
(primary)
2.0% [2.0%, 2.0%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 2.0% [2.0%, 2.0%] 1

Footnotes

  1. the arithmetic mean of the percent change 2 3

  2. number of relevant changes 2 3

@lcnr lcnr deleted the bye-bye-type-traversal branch October 18, 2022 07:08
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 4, 2023
…smaller, r=lcnr

Remove `NormalizationError::ConstantKind`

No longer in use by `TryNormalizeAfterErasingRegionsFolder` (as of rust-lang#102355 / e8150fa it seems). It's making `LayoutError`, etc. kinda large -- that was noticed by `@zoxc.`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-const-generics Area: const generics (parameters and arguments) 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