OSDN Git Service

[CodeGen] Fix warnings in LowerToPredicatedOp
authorDavid Sherwood <david.sherwood@arm.com>
Wed, 27 May 2020 10:41:25 +0000 (11:41 +0100)
committerDavid Sherwood <david.sherwood@arm.com>
Fri, 29 May 2020 14:19:03 +0000 (15:19 +0100)
commit205085d4ccf9c367ba70de9d8f0dd74d6f567c24
tree9248bee711c2ba704cf43b3561736363482fe87b
parentbd03ef19beb8a3476d5cd9f744c5fba5ca287c51
[CodeGen] Fix warnings in LowerToPredicatedOp

When creating a new vector type based on another vector type we
should pass in the element count instead of the number of elements
and scalable flag separately.

I encountered this warning whilst compiling this test:

  CodeGen/AArch64/sve-intrinsics-int-compares.ll

Differential revision: https://reviews.llvm.org/D80621
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp