[InstCombine] canonicalize zext-and-of-bool compare to narrow and
https://alive2.llvm.org/ce/z/3jYbEH We should choose one of these forms, and the option that uses the narrow type allows the motivating example from issue #56294 to reduce. In the best case (no 'not' needed and 'trunc' remains), this does remove an instruction. Note that there is what looks like a regression because there is an existing canonicalization that turns trunc into and+icmp. That is a long-standing transform, and I'm not sure what effect reversing it would have.
Loading
Please sign in to comment