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

Make integer-to-integer From impls #[inline(always)] #105271

Merged
merged 1 commit into from
Dec 7, 2022

Conversation

eduardosm
Copy link
Contributor

Splited from #105262

@rustbot
Copy link
Collaborator

rustbot commented Dec 4, 2022

r? @scottmcm

(rustbot has picked a reviewer for you, use r? to override)

@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 Dec 4, 2022
@rustbot

This comment was marked as resolved.

@eduardosm
Copy link
Contributor Author

I'm not sure if I need special permissions to do this

@bors try @rust-timer queue

@rust-timer

This comment was marked as resolved.

@bors

This comment was marked as resolved.

@scottmcm
Copy link
Member

scottmcm commented Dec 4, 2022

With MIR inlining on, it's less obvious to me whether these are still important, but let's see.

@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 Dec 4, 2022
@bors
Copy link
Contributor

bors commented Dec 4, 2022

⌛ Trying commit 2e51122 with merge f342a343db8ef070ca9bba87b8a43e9a2cf082de...

@bors
Copy link
Contributor

bors commented Dec 5, 2022

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

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (f342a343db8ef070ca9bba87b8a43e9a2cf082de): comparison URL.

Overall result: no relevant changes - 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 benchmark run did not return any relevant results for this metric.

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

Cycles

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

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Dec 5, 2022
@scottmcm
Copy link
Member

scottmcm commented Dec 5, 2022

Given no instruction or cycles results either way, this seems fine. These are so trivial that they're implicit it lots of language, so making sure there no function overhead seems plausible.

@bors r+ rollup=iffy

@bors
Copy link
Contributor

bors commented Dec 5, 2022

📌 Commit 2e51122 has been approved by scottmcm

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 Dec 5, 2022
@bors
Copy link
Contributor

bors commented Dec 6, 2022

⌛ Testing commit 2e51122 with merge 023b513...

@bors
Copy link
Contributor

bors commented Dec 7, 2022

☀️ Test successful - checks-actions
Approved by: scottmcm
Pushing 023b513 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Dec 7, 2022
@bors bors merged commit 023b513 into rust-lang:master Dec 7, 2022
@rustbot rustbot added this to the 1.67.0 milestone Dec 7, 2022
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (023b513): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

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

Max RSS (memory usage)

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

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

@eduardosm eduardosm deleted the inline-always-int-conv branch December 7, 2022 15:10
Aaron1011 pushed a commit to Aaron1011/rust that referenced this pull request Jan 6, 2023
…scottmcm

Make integer-to-integer `From` impls `#[inline(always)]`

Splited from rust-lang#105262
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. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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.

5 participants