[SVE] Fix warnings in SelectInst::areInvalidOperands
authorDavid Sherwood <david.sherwood@arm.com>
Wed, 27 May 2020 14:21:48 +0000 (15:21 +0100)
committerDavid Sherwood <david.sherwood@arm.com>
Fri, 29 May 2020 06:50:47 +0000 (07:50 +0100)
commit9c0ef044beb4850ad9626cb81a1ede4f3bbda4a7
tree00284fd76b8e7b3d5796856a1c87855029f8755f
parentb147b88c8432cdc14a3238925dbfb8d55be32932
[SVE] Fix warnings in SelectInst::areInvalidOperands

We should be comparing the element counts rather than the
numbers of elements.

Differential Revision: https://reviews.llvm.org/D80634
llvm/lib/IR/Instructions.cpp
llvm/test/CodeGen/AArch64/sve-bad-select.ll [new file with mode: 0644]