We already have matchers for ISD::SMAX/SMIN/UMAX/UMIN nodes, but it'd be useful if we could match icmp+select patterns as well, preferably with the same existing m_SMax/m_SMin/m_UMax/m_UMin helpers.
This would be similar to the the IR PatternMatch MaxMin_match helpers which match the min/max intrinsics and the cmp+select patterns.