Skip to content

Revert "[Mips] Fix missing sign extension in expansion of sub-word atomic max (#77072)" #88818

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 1 commit into from
Apr 16, 2024

Conversation

nikic
Copy link
Contributor

@nikic nikic commented Apr 16, 2024

These changes caused correctness regressions observed in Rust, see #77072 (comment) and following. Revert the incorrect changes from the release branch.

This reverts commit 0e501db.
This reverts commit fbb27d1.

@nikic nikic added this to the LLVM 18.X Release milestone Apr 16, 2024
@nikic nikic requested review from dianqk and topperc April 16, 2024 00:14
Copy link
Member

@dianqk dianqk left a comment

Choose a reason for hiding this comment

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

LGTM.

…omic max (llvm#77072)"

These changes caused correctness regressions observed in Rust,
see
llvm#77072 (comment).

This reverts commit 0e501db.
This reverts commit fbb27d1.
@tstellar tstellar force-pushed the revert-mips-backports branch from 8b6d4e5 to 1deeee3 Compare April 16, 2024 21:43
@tstellar
Copy link
Collaborator

Hi @nikic (or anyone else). If you would like to add a note about this fix in the release notes (completely optional). Please reply to this comment with a one or two sentence description of the fix.

@tstellar tstellar merged commit 1deeee3 into llvm:release/18.x Apr 16, 2024
@dianqk
Copy link
Member

dianqk commented Apr 16, 2024

Hi @nikic (or anyone else). If you would like to add a note about this fix in the release notes (completely optional). Please reply to this comment with a one or two sentence description of the fix.

I'm not sure if this description is accurate:
Fix the issue where the atomic instructions on MIPS do not return the correct results.

cc @topperc

@topperc
Copy link
Collaborator

topperc commented Apr 16, 2024

Hi @nikic (or anyone else). If you would like to add a note about this fix in the release notes (completely optional). Please reply to this comment with a one or two sentence description of the fix.

I'm not sure if this description is accurate: Fix the issue where the atomic instructions on MIPS do not return the correct results.

cc @topperc

Probably should mention min/max specifically.

@nikic
Copy link
Contributor Author

nikic commented Apr 17, 2024

I'd also add that this fixes a regression from a previous LLVM 18 point release:

Fix regressions introduced in LLVM 18.1.3 in MIPS atomicrmw min/max codegen.

@yingopq
Copy link
Contributor

yingopq commented Apr 17, 2024

@nikic Hi, have you not reverted those two patches in main branch yet? I plan to submit new patch which has addressed this issue.

@nikic
Copy link
Contributor Author

nikic commented Apr 17, 2024

@yingopq The patches are not reverted in main, so you can base your fix on top of the existing changes (or revert them as part of your PR, if that's easier?)

@yingopq
Copy link
Contributor

yingopq commented Apr 17, 2024

@yingopq The patches are not reverted in main, so you can base your fix on top of the existing changes (or revert them as part of your PR, if that's easier?)

Should it be consistent with the release branch, so that it is more convenient to merge into the release branch?

@dianqk
Copy link
Member

dianqk commented Apr 17, 2024

@yingopq The patches are not reverted in main, so you can base your fix on top of the existing changes (or revert them as part of your PR, if that's easier?)

Should it be consistent with the release branch, so that it is more convenient to merge into the release branch?

Maybe you can revert them in your new PR, then we can use rebase and push to merge your PR.
Or we can also revert this PR (#88818) and cherry-pick your new patch in release/18.x.

@nikic
Copy link
Contributor Author

nikic commented Apr 17, 2024

Given that this change has already caused two distinct bugs, I don't think we will accept a backport for it anyway, so don't worry about the release branch.

@mehdi2021mp

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

6 participants