Skip to content

Conversation

@saethlin
Copy link
Member

@saethlin saethlin commented Aug 24, 2024

The overhead here is probably too much, but let's have the measurement anyway.

  • Ralf says: If we keep this attribute, the docs on the intrinsic should be updated.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Aug 24, 2024
@saethlin
Copy link
Member 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 Aug 24, 2024
@bors
Copy link
Collaborator

bors commented Aug 24, 2024

⌛ Trying commit 0a65e30 with merge aadda4d...

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

Try enabling precondition checks on ptr::{read,write}

The overhead here is probably too much, but let's have the measurement anyway.

This will fail at least one codegen test.

r? `@ghost`
@bors
Copy link
Collaborator

bors commented Aug 24, 2024

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

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (aadda4d): 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.2%, 1.9%] 52
Regressions ❌
(secondary)
2.0% [0.2%, 6.3%] 32
Improvements ✅
(primary)
-0.6% [-0.9%, -0.4%] 3
Improvements ✅
(secondary)
-1.3% [-1.3%, -1.3%] 1
All ❌✅ (primary) 0.6% [-0.9%, 1.9%] 55

Max RSS (memory usage)

Results (primary 0.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)
3.1% [0.6%, 5.0%] 4
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-3.3% [-3.7%, -2.8%] 3
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.3% [-3.7%, 5.0%] 7

Cycles

Results (primary 1.5%, secondary 3.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)
1.5% [0.7%, 2.1%] 6
Regressions ❌
(secondary)
3.3% [2.1%, 5.3%] 8
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 1.5% [0.7%, 2.1%] 6

Binary size

Results (primary 0.6%, secondary 0.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.7% [0.0%, 6.1%] 77
Regressions ❌
(secondary)
3.2% [1.1%, 3.7%] 12
Improvements ✅
(primary)
-0.3% [-0.5%, -0.1%] 11
Improvements ✅
(secondary)
-0.2% [-3.1%, -0.0%] 43
All ❌✅ (primary) 0.6% [-0.5%, 6.1%] 88

Bootstrap: 751.449s -> 756.74s (0.70%)
Artifact size: 339.00 MiB -> 338.92 MiB (-0.02%)

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Aug 24, 2024
@saethlin saethlin added S-experimental Status: Ongoing experiment that does not require reviewing and won't be merged in its current state. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 24, 2024
@saethlin saethlin force-pushed the ptr-read-write-precondition branch from 0a65e30 to 3b756c6 Compare August 28, 2024 00:42
@saethlin
Copy link
Member 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 Aug 28, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 28, 2024
…, r=<try>

Try enabling precondition checks on ptr::{read,write}

The overhead here is probably too much, but let's have the measurement anyway.

This will fail at least one codegen test.

r? `@ghost`
@bors
Copy link
Collaborator

bors commented Aug 28, 2024

⌛ Trying commit 3b756c6 with merge 4091821...

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Collaborator

bors commented Aug 28, 2024

☀️ Try build successful - checks-actions
Build commit: 4091821 (40918219c81cfdde936a6a9166876866d77b7d1f)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (4091821): 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.5% [0.2%, 1.6%] 32
Regressions ❌
(secondary)
0.9% [0.2%, 2.4%] 7
Improvements ✅
(primary)
-0.5% [-0.5%, -0.5%] 2
Improvements ✅
(secondary)
-1.6% [-1.6%, -1.6%] 1
All ❌✅ (primary) 0.5% [-0.5%, 1.6%] 34

Max RSS (memory usage)

Results (primary 1.1%, 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)
9.5% [5.0%, 14.0%] 2
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-3.2% [-4.1%, -2.4%] 4
Improvements ✅
(secondary)
-2.3% [-3.4%, -1.7%] 6
All ❌✅ (primary) 1.1% [-4.1%, 14.0%] 6

Cycles

Results (primary 1.6%, secondary 1.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)
1.6% [1.1%, 2.4%] 7
Regressions ❌
(secondary)
2.5% [2.0%, 2.9%] 4
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-1.5% [-1.5%, -1.5%] 1
All ❌✅ (primary) 1.6% [1.1%, 2.4%] 7

Binary size

Results (primary 0.4%, secondary 0.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.6% [0.0%, 6.2%] 62
Regressions ❌
(secondary)
1.2% [0.3%, 3.8%] 14
Improvements ✅
(primary)
-0.2% [-0.4%, -0.0%] 15
Improvements ✅
(secondary)
-0.4% [-3.1%, -0.0%] 9
All ❌✅ (primary) 0.4% [-0.4%, 6.2%] 77

Bootstrap: 752.135s -> 753.574s (0.19%)
Artifact size: 338.76 MiB -> 338.74 MiB (-0.01%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Aug 28, 2024
};
let preserve_ub_checks =
attr::contains_name(tcx.hir().krate_attrs(), sym::rustc_preserve_ub_checks);
let remove_ub_checks = tcx.has_attr(def_id, sym::rustc_no_ubchecks);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we keep this attribute, the docs on the intrinsic should be updated.

@saethlin saethlin force-pushed the ptr-read-write-precondition branch from 3b756c6 to d527afc Compare August 29, 2024 22:32
@saethlin saethlin force-pushed the ptr-read-write-precondition branch from ddf0f53 to 579bfbd Compare March 14, 2025 17:00
@bors
Copy link
Collaborator

bors commented Mar 16, 2025

☔ The latest upstream changes (presumably #138548) made this pull request unmergeable. Please resolve the merge conflicts.

@saethlin saethlin force-pushed the ptr-read-write-precondition branch from 579bfbd to e374e85 Compare March 17, 2025 23:45
@bors
Copy link
Collaborator

bors commented Apr 10, 2025

☔ The latest upstream changes (presumably #137412) made this pull request unmergeable. Please resolve the merge conflicts.

@saethlin saethlin force-pushed the ptr-read-write-precondition branch from e374e85 to 038234b Compare April 11, 2025 11:18
@bors
Copy link
Collaborator

bors commented Apr 11, 2025

☔ The latest upstream changes (presumably #139689) made this pull request unmergeable. Please resolve the merge conflicts.

@saethlin saethlin force-pushed the ptr-read-write-precondition branch from 038234b to 73dc4d4 Compare April 12, 2025 01:13
@bors
Copy link
Collaborator

bors commented Jul 22, 2025

☔ The latest upstream changes (presumably #144249) made this pull request unmergeable. Please resolve the merge conflicts.

@saethlin saethlin force-pushed the ptr-read-write-precondition branch from 73dc4d4 to 3094d95 Compare November 23, 2025 14:25
@saethlin
Copy link
Member Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rust-bors

This comment has been minimized.

rust-bors bot added a commit that referenced this pull request Nov 23, 2025
Try enabling precondition checks on ptr::{read,write}
@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Nov 23, 2025
@rust-log-analyzer

This comment has been minimized.

@saethlin saethlin force-pushed the ptr-read-write-precondition branch from 3094d95 to a416efa Compare November 23, 2025 14:55
@saethlin
Copy link
Member Author

@bors try cancel

@rust-bors
Copy link

rust-bors bot commented Nov 23, 2025

Try build cancelled. Cancelled workflows:

@saethlin
Copy link
Member Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rust-bors

This comment has been minimized.

rust-bors bot added a commit that referenced this pull request Nov 23, 2025
Try enabling precondition checks on ptr::{read,write}
@rust-log-analyzer

This comment has been minimized.

@rust-bors
Copy link

rust-bors bot commented Nov 23, 2025

☀️ Try build successful (CI)
Build commit: b11b745 (b11b745213c55006c47ff931896c2b1a5cc1a260, parent: 23f708107b459ed551a860ef0bf8b61bc80b48b4)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (b11b745): comparison URL.

Overall result: ❌✅ regressions and improvements - please read the text below

Benchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @rustbot label: +perf-regression-triaged. If not, please fix the regressions and do another perf run. If its results are neutral or positive, the label will be automatically removed.

@bors rollup=never
@rustbot label: -S-waiting-on-perf +perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
0.5% [0.2%, 1.5%] 43
Regressions ❌
(secondary)
0.5% [0.0%, 1.3%] 15
Improvements ✅
(primary)
-0.9% [-1.2%, -0.6%] 2
Improvements ✅
(secondary)
-0.2% [-0.2%, -0.2%] 1
All ❌✅ (primary) 0.4% [-1.2%, 1.5%] 45

Max RSS (memory usage)

Results (primary 1.0%, secondary 3.3%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
3.6% [2.5%, 4.9%] 6
Regressions ❌
(secondary)
3.8% [0.7%, 7.1%] 10
Improvements ✅
(primary)
-4.1% [-6.8%, -1.8%] 3
Improvements ✅
(secondary)
-2.0% [-2.0%, -2.0%] 1
All ❌✅ (primary) 1.0% [-6.8%, 4.9%] 9

Cycles

Results (primary 2.0%, secondary -0.5%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
2.0% [2.0%, 2.0%] 1
Regressions ❌
(secondary)
3.7% [1.8%, 5.0%] 5
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-3.9% [-6.6%, -1.3%] 6
All ❌✅ (primary) 2.0% [2.0%, 2.0%] 1

Binary size

Results (primary 0.3%, secondary 0.1%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
0.3% [0.0%, 1.0%] 60
Regressions ❌
(secondary)
0.2% [0.1%, 0.3%] 13
Improvements ✅
(primary)
-0.3% [-0.7%, -0.0%] 3
Improvements ✅
(secondary)
-0.4% [-0.7%, -0.2%] 3
All ❌✅ (primary) 0.3% [-0.7%, 1.0%] 63

Bootstrap: 469.836s -> 468.624s (-0.26%)
Artifact size: 386.24 MiB -> 388.11 MiB (0.48%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Nov 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

perf-regression Performance regression. S-experimental Status: Ongoing experiment that does not require reviewing and won't be merged in its current state. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-libs Relevant to the library 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