[CodeGen] Fix warning in getNode for EXTRACT_SUBVECTOR
authorDavid Sherwood <david.sherwood@arm.com>
Mon, 29 Jun 2020 07:13:50 +0000 (08:13 +0100)
committerDavid Sherwood <david.sherwood@arm.com>
Tue, 30 Jun 2020 07:11:41 +0000 (08:11 +0100)
commitc02332a69399a82244298f0097bc98fafdeb3042
tree955845d323bd4943fb367fb3741dcc14ea49cb4a
parentef7aad0db49f0a3623b42af991ba4ae48099a58d
[CodeGen] Fix warning in getNode for EXTRACT_SUBVECTOR

Fix a warning in getNode() when extracting a subvector from a
concat vector. We can simply replace the call to getVectorNumElements
with getVectorMinNumElements as this follows the defined behaviour
for EXTRACT_SUBVECTOR.

Differential Revision: https://reviews.llvm.org/D82746
clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_get2.c
clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_get3.c
clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_get4.c
clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_st2.c
clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_st3.c
clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_st4.c
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp