In VectorType::getDoubleElementsVectorType we were asserting that
we could fit double the number of elements in an integer, however
the code was incorrectly using getVectorNumElements() for scalable
vectors. I've changed the code to use the element count instead.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Hi @efriedma, I discovered this assert was generating warnings (due to getVectorNumElements call) whilst running some SVE intrinsics tests, i.e.
llvm-lit -a ../llvm/test/CodeGen/AArch64/sve-intrinsics-*.ll
so we do have existing test coverage. I found it difficult to know how to test this because I haven't really modified the code path.