Skip to content

Conversation

@eduardosm
Copy link
Contributor

Fixes #4659

@rustbot
Copy link
Collaborator

rustbot commented Nov 4, 2025

Thank you for contributing to Miri!
Please remember to not force-push to the PR branch except when you need to rebase due to a conflict or when the reviewer asks you for it.

@rustbot rustbot added the S-waiting-on-review Status: Waiting for a review to complete label Nov 4, 2025
Copy link
Member

@RalfJung RalfJung left a comment

Choose a reason for hiding this comment

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

Thanks!

How did you determine which ones can be removed?

View changes since this review

let [left, right] =
this.check_shim_sig_lenient(abi, CanonAbi::C, link_name, args)?;

let (which, saturating) = match unprefixed_name {
Copy link
Member

Choose a reason for hiding this comment

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

saturating is always true now.

let [left, right] =
this.check_shim_sig_lenient(abi, CanonAbi::C, link_name, args)?;

let (which, saturating) = match unprefixed_name {
Copy link
Member

Choose a reason for hiding this comment

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

Same here, saturating is always true now.

@RalfJung RalfJung added S-waiting-on-author Status: Waiting for the PR author to address review comments and removed S-waiting-on-review Status: Waiting for a review to complete labels Nov 5, 2025
@rustbot

This comment has been minimized.

@rustbot
Copy link
Collaborator

rustbot commented Nov 6, 2025

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@eduardosm
Copy link
Contributor Author

How did you determine which ones can be removed?

By looking at the diff of rust-lang/stdarch#1928 and rust-lang/stdarch#1932

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Waiting for a review to complete and removed S-waiting-on-author Status: Waiting for the PR author to address review comments labels Nov 6, 2025
Copy link
Member

@RalfJung RalfJung left a comment

Choose a reason for hiding this comment

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

to better match our usual style

View changes since this review

};

horizontal_bin_op(this, which, saturating, left, right, dest)?;
horizontal_bin_op(this, which, true /*saturating*/, left, right, dest)?;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
horizontal_bin_op(this, which, true /*saturating*/, left, right, dest)?;
horizontal_bin_op(this, which, /*saturating*/ true, left, right, dest)?;

};

horizontal_bin_op(this, which, saturating, left, right, dest)?;
horizontal_bin_op(this, which, true /*saturating*/, left, right, dest)?;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
horizontal_bin_op(this, which, true /*saturating*/, left, right, dest)?;
horizontal_bin_op(this, which, /*saturating*/ true, left, right, dest)?;

@RalfJung RalfJung added this pull request to the merge queue Nov 6, 2025
@RalfJung
Copy link
Member

RalfJung commented Nov 6, 2025

Thanks a lot!

Merged via the queue into rust-lang:master with commit 4772588 Nov 6, 2025
13 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Waiting for a review to complete label Nov 6, 2025
@eduardosm eduardosm deleted the remove-intrinsics branch November 6, 2025 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean up unused LLVM SIMD intrinsics

3 participants