-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[InstCombine] Regression in and of masked comparison fold #110919
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
Comments
Inverse case: https://llvm.godbolt.org/z/qsq8cj9eK Adding handling for this to foldEqOfParts() is not as straightforward as I'd like because it moves away from "and/or of icmps" and we're quite geared towards that right now. Like, it will no longer be automatically invoked for logical and/or, reassociated and/or, etc. This should probably be cleaned up first. |
nikic
added a commit
that referenced
this issue
Oct 17, 2024
nikic
added a commit
to nikic/llvm-project
that referenced
this issue
Oct 17, 2024
Equality/inequality of the low bit can be represented by `(trunc (xor x, y) to i1)`, possibly with an extra not. We have to handle this in the eq-of-parts fold now that we no longer canonicalize this to a masked icmp. Proofs: https://alive2.llvm.org/ce/z/qidkzq Fixes llvm#110919.
nikic
added a commit
to nikic/llvm-project
that referenced
this issue
Nov 25, 2024
Equality/inequality of the low bit can be represented by `(trunc (xor x, y) to i1)`, possibly with an extra not. We have to handle this in the eq-of-parts fold now that we no longer canonicalize this to a masked icmp. Proofs: https://alive2.llvm.org/ce/z/qidkzq Fixes llvm#110919.
nikic
added a commit
that referenced
this issue
Nov 25, 2024
Equality/inequality of the low bit can be represented by `(trunc (xor x, y) to i1)`, possibly with an extra not. We have to handle this in the eq-of-parts fold now that we no longer canonicalize this to a masked icmp. Proofs: https://alive2.llvm.org/ce/z/qidkzq Fixes #110919.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From rust-lang/rust#131162:
https://llvm.godbolt.org/z/Pasonhe9d:
LLVM 18:
LLVM 19:
I believe this is fallout from removal of the trunc i1 canonicalization in #84628.
The text was updated successfully, but these errors were encountered: