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

[DAG] SimplifySetCC - failure to simplify icmp(not(x),not(y)) -> icmp(y, x) patterns #61120

Closed
RKSimon opened this issue Mar 2, 2023 · 1 comment

Comments

@RKSimon
Copy link
Collaborator

RKSimon commented Mar 2, 2023

https://godbolt.org/z/E4rjf9se4

This is handled in instcombine, but under certain circumstances they can appear in the DAG as well (noticed while trying to improve ABD expansion on x86).

We do get the EQ/NE cases indirectly via the fold: (X^Y) == (X^Z) --> Y == Z

@junaire
Copy link
Member

junaire commented Mar 21, 2023

Hi @RKSimon , I would like to work on this. I've created https://reviews.llvm.org/D146512.

@junaire junaire self-assigned this Mar 21, 2023
junaire added a commit that referenced this issue Mar 23, 2023
Signed-off-by: Jun Zhang <jun@junz.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants