[InstCombine] Canonicalize `(icmp eq/ne (and x, C), x)` -> `(icmp eq/ne (and x, ~C), 0)`
This increases the likelyhood `x` is single-use and is typically easier to analyze. Proofs: https://alive2.llvm.org/ce/z/8ZpS2W Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D154004
Loading
Please sign in to comment