This takes the existing SVE costing for the various min/max reduction intrinsics and expands it to NEON, where I believe it applies equally well.
In the process it changes the lowering to use min/max cost, as opposed to summing up the cost of ICmp+Select.
nit: isa<ScalableVectorType(Ty) == isa<ScalableVectorType>(CondTy)