[LegalizeVectorTypes] Improve SplitVecRes_INSERT_SUBVECTOR to handle subvector being...
authorCraig Topper <craig.topper@sifive.com>
Wed, 3 Mar 2021 05:03:36 +0000 (21:03 -0800)
committerCraig Topper <craig.topper@sifive.com>
Wed, 3 Mar 2021 05:14:13 +0000 (21:14 -0800)
commit543b901e581b732225db4277a8e995ac8dde62b7
tree396c6695592291151bfcb408811c58cce81c4c80
parentac4c1760b21c811b708c1a4e1dcd7ac47ca8565e
[LegalizeVectorTypes] Improve SplitVecRes_INSERT_SUBVECTOR to handle subvector being in the high half of the split or not at element 0 of the low half.

This function isn't exercised in lit tests today today according to
the code coverage report. But will be after the tests in D97543 and
D97559.

Posting this patch to help a crash that Fraser hit.

Reviewed By: frasercrmck

Differential Revision: https://reviews.llvm.org/D97582
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-insert-subvector.ll