[InstCombine] Support logical and in masked icmp fold
Most of the folds implemented in this function work fine with logical operations. We only need to be careful for the cases that work on non-constant masks, where the RHS operand shouldn't be poison. This is a conservative implementation that bails out of illegal transforms, but we could also change these to insert freeze instead.
parent
4aa32e1b
Please register or sign in to comment