[SelectionDAG] Widening the result of INSERT_SUBVECTOR.
authorCaroline Concatto <caroline.concatto@arm.com>
Wed, 20 Oct 2021 21:38:02 +0000 (22:38 +0100)
committerCaroline Concatto <caroline.concatto@arm.com>
Wed, 27 Oct 2021 12:52:25 +0000 (13:52 +0100)
commit1137b7207d707c83a0fa99c60f0411bfec98db06
tree618790fed8326482d510369c959cda6d48fa4f82
parentfbc0c308d599fe3300ab6516650b65b41979446d
[SelectionDAG] Widening the result of INSERT_SUBVECTOR.

Widens the result and first input vector because they have the same size.
The subvector to be inserted is widened in the operand widen function.

Differential Revision: https://reviews.llvm.org/D112187
llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
llvm/test/CodeGen/AArch64/sve-insert-vector.ll