[ValueTracking] move min/max matching to helper function; NFCI

llvm-svn: 286772
1 file changed