Asserting if any extend of vectors should be up to the target's legalizer/target specific code.
I suspect this was moved around from AArch64 during refactoring and stayed as is in generic code.
This assert fires if we compile the following llvm ir
define <4 x i1> @foo() {
entry:
ret <4 x i1> zeroinitializer
}
llc -mtriple=x86_64-linux-gnu -o - -global-isel
If required I can add a test that IRTranslation for above doesn't crash and produces ANYEXT. I haven't added as this seemed overkill for removing an assert.