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 generate functions with the rustc_intrinsic_must_be_overridden attribute #129239

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

DianQK
Copy link
Member

@DianQK DianQK commented Aug 18, 2024

Functions with the attribute rustc_intrinsic_must_be_overridden never be called.

r? compiler

@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 18, 2024
@DianQK
Copy link
Member Author

DianQK commented Aug 18, 2024

@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 18, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 18, 2024
Don't generate functions with the `rustc_intrinsic_must_be_overridden` attribute

Functions with the attribute `rustc_intrinsic_must_be_overridden` never be called.

r? `@ghost`
@bors
Copy link
Contributor

bors commented Aug 18, 2024

⌛ Trying commit f083be2 with merge 438c84c...

@bors
Copy link
Contributor

bors commented Aug 18, 2024

☀️ Try build successful - checks-actions
Build commit: 438c84c (438c84c46ca46e3300ce9cdc9860333bfb15c44b)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (438c84c): 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.2%, 0.8%] 27
Regressions ❌
(secondary)
2.2% [2.2%, 2.2%] 1
Improvements ✅
(primary)
-0.2% [-0.3%, -0.1%] 3
Improvements ✅
(secondary)
-0.5% [-2.0%, -0.2%] 14
All ❌✅ (primary) 0.3% [-0.3%, 0.8%] 30

Max RSS (memory usage)

Results (primary 2.2%, secondary -0.7%)

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.9% [1.4%, 8.8%] 7
Regressions ❌
(secondary)
2.8% [0.8%, 4.7%] 2
Improvements ✅
(primary)
-3.5% [-3.7%, -3.3%] 2
Improvements ✅
(secondary)
-3.0% [-4.2%, -2.3%] 3
All ❌✅ (primary) 2.2% [-3.7%, 8.8%] 9

Cycles

Results (primary 2.3%, secondary 0.4%)

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.3% [2.3%, 2.3%] 1
Regressions ❌
(secondary)
2.2% [2.2%, 2.2%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-1.5% [-1.5%, -1.5%] 1
All ❌✅ (primary) 2.3% [2.3%, 2.3%] 1

Binary size

Results (primary -0.3%, secondary -2.9%)

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.0% [0.0%, 0.1%] 8
Regressions ❌
(secondary)
0.0% [0.0%, 0.0%] 1
Improvements ✅
(primary)
-0.4% [-1.1%, -0.0%] 49
Improvements ✅
(secondary)
-3.6% [-4.4%, -3.3%] 4
All ❌✅ (primary) -0.3% [-1.1%, 0.1%] 57

Bootstrap: 749.337s -> 749.656s (0.04%)
Artifact size: 339.12 MiB -> 339.22 MiB (0.03%)

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Aug 18, 2024
@DianQK
Copy link
Member Author

DianQK commented Aug 18, 2024

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

bors commented Aug 18, 2024

⌛ Trying commit 4508800 with merge 05d56f1...

bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 18, 2024
Don't generate functions with the `rustc_intrinsic_must_be_overridden` attribute

Functions with the attribute `rustc_intrinsic_must_be_overridden` never be called.

r? `@ghost`
@bors
Copy link
Contributor

bors commented Aug 19, 2024

☀️ Try build successful - checks-actions
Build commit: 05d56f1 (05d56f18dc44c938d49e46f7ce3928a987115210)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (05d56f1): 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-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)
- - 0
Improvements ✅
(primary)
-0.2% [-0.2%, -0.2%] 2
Improvements ✅
(secondary)
-0.8% [-1.9%, -0.2%] 9
All ❌✅ (primary) -0.2% [-0.2%, -0.2%] 2

Max RSS (memory usage)

Results (primary 1.3%, 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)
4.1% [1.3%, 8.7%] 6
Regressions ❌
(secondary)
3.8% [3.7%, 4.0%] 2
Improvements ✅
(primary)
-2.9% [-3.5%, -2.0%] 4
Improvements ✅
(secondary)
-4.1% [-5.9%, -2.4%] 2
All ❌✅ (primary) 1.3% [-3.5%, 8.7%] 10

Cycles

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

Binary size

Results (primary -0.3%, secondary -2.9%)

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.1%] 8
Regressions ❌
(secondary)
0.0% [0.0%, 0.0%] 1
Improvements ✅
(primary)
-0.4% [-1.1%, -0.0%] 50
Improvements ✅
(secondary)
-3.6% [-4.4%, -3.3%] 4
All ❌✅ (primary) -0.3% [-1.1%, 0.1%] 58

Bootstrap: 751.033s -> 749.665s (-0.18%)
Artifact size: 339.18 MiB -> 339.36 MiB (0.05%)

@rustbot rustbot removed S-waiting-on-perf Status: Waiting on a perf run to be completed. perf-regression Performance regression. labels Aug 19, 2024
@DianQK DianQK marked this pull request as ready for review August 19, 2024 04:06
@DianQK
Copy link
Member Author

DianQK commented Aug 19, 2024

r? @saethlin

@rustbot rustbot assigned saethlin and unassigned fmease Aug 19, 2024
@saethlin
Copy link
Member

Sweet! Thanks!

@bors r+

@bors
Copy link
Contributor

bors commented Aug 19, 2024

📌 Commit 4508800 has been approved by saethlin

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 Aug 19, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 20, 2024
…ethlin

Don't generate functions with the `rustc_intrinsic_must_be_overridden` attribute

Functions with the attribute `rustc_intrinsic_must_be_overridden` never be called.

r? compiler
@bors
Copy link
Contributor

bors commented Aug 20, 2024

⌛ Testing commit 4508800 with merge 4741807...

@bors
Copy link
Contributor

bors commented Aug 20, 2024

💥 Test timed out

@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 Aug 20, 2024
@DianQK
Copy link
Member Author

DianQK commented Aug 20, 2024

@bors retry 💥

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

bors commented Aug 20, 2024

⌛ Testing commit 4508800 with merge 4d5b3b1...

@bors
Copy link
Contributor

bors commented Aug 20, 2024

☀️ Test successful - checks-actions
Approved by: saethlin
Pushing 4d5b3b1 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Aug 20, 2024
@bors bors merged commit 4d5b3b1 into rust-lang:master Aug 20, 2024
7 checks passed
@rustbot rustbot added this to the 1.82.0 milestone Aug 20, 2024
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (4d5b3b1): 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.2% [0.2%, 0.2%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.3% [-0.3%, -0.2%] 2
Improvements ✅
(secondary)
-1.3% [-2.2%, -0.6%] 6
All ❌✅ (primary) -0.1% [-0.3%, 0.2%] 3

Max RSS (memory usage)

Results (primary 2.0%, secondary -2.4%)

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)
4.7% [1.6%, 8.7%] 6
Regressions ❌
(secondary)
2.4% [2.4%, 2.4%] 1
Improvements ✅
(primary)
-3.4% [-4.7%, -2.0%] 3
Improvements ✅
(secondary)
-4.8% [-6.6%, -2.9%] 2
All ❌✅ (primary) 2.0% [-4.7%, 8.7%] 9

Cycles

Results (secondary -2.3%)

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.3% [-2.5%, -2.0%] 6
All ❌✅ (primary) - - 0

Binary size

Results (primary -0.3%, secondary -3.6%)

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.0% [0.0%, 0.1%] 8
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.4% [-1.1%, -0.0%] 50
Improvements ✅
(secondary)
-3.6% [-4.4%, -3.3%] 4
All ❌✅ (primary) -0.3% [-1.1%, 0.1%] 58

Bootstrap: 749.153s -> 749.351s (0.03%)
Artifact size: 338.89 MiB -> 338.82 MiB (-0.02%)

@rustbot rustbot added the perf-regression Performance regression. label Aug 20, 2024
@DianQK DianQK deleted the codegen-rustc_intrinsic branch August 20, 2024 22:34
@pnkfelix
Copy link
Member

Visiting for weekly rustc-perf triage

  • from inspecting the PR, its hard to imagine doing this in a better way, and I suspect the single reported regression is noise.
  • marking as triaged

@rustbot label: +perf-regression-triaged

@rustbot rustbot added the perf-regression-triaged The performance regression has been triaged. label Aug 29, 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants