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

PR for llvm/llvm-project#68783 #731

Merged
merged 2 commits into from
Oct 17, 2023
Merged

PR for llvm/llvm-project#68783 #731

merged 2 commits into from
Oct 17, 2023

Conversation

llvmbot
Copy link
Member

@llvmbot llvmbot commented Oct 13, 2023

nikic added 2 commits October 13, 2023 16:56
(cherry picked from commit 0ead1faef0bfaea499c3b2d13ab417f6bf3f67e1)
This custom combine currently converts `and(anyext(x),c)` into
`anyext(and(x,c))`. This is not correct, because the original expression
guaranteed that the high bits are zero, while the new one sets them to
undef.

Emit `zext(and(x,c))` instead.

Fixes llvm/llvm-project#68783.

(cherry picked from commit 127ed9ae266ead58aa525f74f4c86841f6674793)
@tru
Copy link
Contributor

tru commented Oct 16, 2023

@nikic who can review this?

@nikic
Copy link
Contributor

nikic commented Oct 16, 2023

@stefanp-ibm reviewed the original PR.

Copy link
Contributor

@stefanp-ibm stefanp-ibm left a comment

Choose a reason for hiding this comment

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

Thank you for fixing this!
LGTM.

@tru tru merged commit 491a91e into release/17.x Oct 17, 2023
15 checks passed
@tru tru deleted the nikic-powerpc-backport branch October 17, 2023 06:12
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.

[PowerPC] Incorrect and/anyext interchange in custom combine
4 participants