The DAGTypeLegalizer::WidenVSELECTMask function is not (yet) ready for
scalable vector types, and has numerous places in which it tries to grab
either the fixed size or number of elements of its types.
I believe that it should be possible to update this method to properly
account for scalable-vector types, but we don't have test cases for
that; RISC-V bails out early on as it has legal i1 vector masks. As
such, this patch just prevents it from crashing.
nit: Can you add a FIXME to say that this support could be added in the future?
(or append "yet" after "vector types" in your current comment)