Skip to content

PR for llvm/llvm-project#68783 #730

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

Closed
wants to merge 2 commits into from
Closed

Conversation

llvmbot
Copy link
Member

@llvmbot llvmbot commented Oct 12, 2023

nikic added 2 commits October 12, 2023 07:39
(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)
@nikic
Copy link
Contributor

nikic commented Oct 12, 2023

Test failures are legitimate. It looks like the instructions scheduling is slightly different with LLVM 17.

@nikic
Copy link
Contributor

nikic commented Oct 13, 2023

Superseded by #731, this one can be closed.

@tru tru closed this Oct 16, 2023
@tru tru deleted the llvm-issue68783 branch October 16, 2023 08:13
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
3 participants