[CodeGen] Fix warnings in isPow2VectorType and getPow2VectorType
authorDavid Sherwood <david.sherwood@arm.com>
Tue, 16 Jun 2020 16:00:12 +0000 (17:00 +0100)
committerDavid Sherwood <david.sherwood@arm.com>
Thu, 18 Jun 2020 08:17:06 +0000 (09:17 +0100)
commitae22e8416347757e91c8bcf9e431a5893dd8d000
treea209110a6621e33568056b5828cfa2620cd16650
parent945d20f7ab28bbf836bc7911d59f37eb9e9a6c87
[CodeGen] Fix warnings in isPow2VectorType and getPow2VectorType

We should either call getVectorMinNumElements() or
getVectorElementCount().

Differential Revision: https://reviews.llvm.org/D81945
llvm/include/llvm/CodeGen/ValueTypes.h