[PATCH] D154004: [InstCombine] Canonicalize `(icmp eq/ne (and x, C), x)` -> `(icmp eq/ne (and x, ~C), 0)`
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 29 00:25:43 PDT 2023
nikic accepted this revision.
nikic added a comment.
This revision is now accepted and ready to land.
LGTM. Note that there is a conjugate `or` fold (same but with -1 instead of 0) that should be implemented for symmetry as well.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154004/new/
https://reviews.llvm.org/D154004
More information about the llvm-commits
mailing list