[SelectionDAG][VP] Add widening support for VP_MERGE
authorFraser Cormack <fraser@codeplay.com>
Mon, 24 Jan 2022 11:43:20 +0000 (11:43 +0000)
committerFraser Cormack <fraser@codeplay.com>
Tue, 25 Jan 2022 10:59:40 +0000 (10:59 +0000)
commit7cb452bfde1086f7bcddfd6de5594ebcb4c11bf5
tree25aaeaf12431ad4fd63d4ffe9f0694c706d7dc06
parent99adacbcb7895114a62266c8a15e794bacd2380c
[SelectionDAG][VP] Add widening support for VP_MERGE

This patch adds widening support for ISD::VP_MERGE, which widens
identically to VP_SELECT and similarly to other select-like nodes.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D118030
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-vpmerge.ll
llvm/test/CodeGen/RISCV/rvv/vpmerge-sdnode.ll