[ValueTracking] Teach computeNumSignBits to understand min/max clamp patterns with constant/splat values

If we have a min/max pair we can do a better job of counting sign bits if we look at them together. This is similar to what is done in the SelectionDAG version of computeNumSignBits for ISD::SMAX/SMIN.

Differential Revision: https://reviews.llvm.org/D51112

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@340480 91177308-0d34-0410-b5e6-96231b3b80d8
2 files changed