REF: combine masked_cummin_max, cummin_max
more closely match pattern we use for other mask-supporting functions in this file
assume this is neutral or postive on perf? > assume this is neutral or postive on perf?

neutral