[CodeGen] Fix warnings in getZeroExtendInReg
authorDavid Sherwood <david.sherwood@arm.com>
Wed, 27 May 2020 09:36:25 +0000 (10:36 +0100)
committerDavid Sherwood <david.sherwood@arm.com>
Fri, 29 May 2020 10:51:07 +0000 (11:51 +0100)
commit4265f1d23cc9d10b9544bafc7a285ca5f143faea
tree2aeefd6bf75967e809a80da32ea5f2fcb43630a5
parenta91b801b3914bfed334f85fb2e43a25b91a9056d
[CodeGen] Fix warnings in getZeroExtendInReg

We should be using getVectorElementCount() to assert that two types
have the same numbers of elements. I encountered the warnings while
compiling this test:

  CodeGen/AArch64/sve-intrinsics-ld1.ll

Differential Revision: https://reviews.llvm.org/D80616
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp