[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.
Loading
Please sign in to comment