[InstCombine] Add test coverage for (icmp sgt/sle (1 << Y), 0). NFC"
We already optimize the sgt case to (icmp ne Y, BitWidth-1), but we miss optimizing sle because it canonicalizes to (icmp slt (1 << X), 1) first.
parent
5be3894b
Please register or sign in to comment