The SCEV change https://reviews.llvm.org/rGb46c085d2b6d15873fb53718f0a70b3848e19e4a seems to reveal a new crash in SLPVectorizer.
SLP crashes expecting a SelectInst as an externally used value but umin call is found.
The patch relaxes the assumption to make the IR flag propagation safe.
There's no need to require asserts I think, given that you just check the IR. You also don't need 2 > &1 I think