[RISCV] When expanding CONCAT_VECTORS, don't create INSERT_SUBVECTORS for undef subve...
authorCraig Topper <craig.topper@sifive.com>
Mon, 17 Jan 2022 22:40:57 +0000 (14:40 -0800)
committerCraig Topper <craig.topper@sifive.com>
Mon, 17 Jan 2022 22:40:59 +0000 (14:40 -0800)
commit116af698e20bac65c3532f10458c32f536da4f78
treee6f757044aa92017aa5cbfb798dbf14247d70fb0
parent9c410838d2bcaa087e867e9f8a353fe455588287
[RISCV] When expanding CONCAT_VECTORS, don't create INSERT_SUBVECTORS for undef subvectors.

For fixed vectors, the undef will get expanded to an all zeros
build_vector. We don't want that so suppress creating the
insert_subvector.

Reviewed By: frasercrmck

Differential Revision: https://reviews.llvm.org/D117379
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/rvv/common-shuffle-patterns.ll
llvm/test/CodeGen/RISCV/rvv/extract-subvector.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-int-shuffles.ll
llvm/test/CodeGen/RISCV/rvv/interleave-crash.ll