]> granicus.if.org Git - clang/commit
AArch64: simplify illegal vector check. NFC.
authorTim Northover <tnorthover@apple.com>
Tue, 3 May 2016 19:22:41 +0000 (19:22 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 3 May 2016 19:22:41 +0000 (19:22 +0000)
commitaef162c33fa020c0a742e263829377e262e74ca7
treee2bfe12a53229b0c7c2cabb89ea7b329c1dd04b4
parent9da623d448eeaefa68e181cb134ad396a9d7791b
AArch64: simplify illegal vector check. NFC.

Use a utility function to check whether the number of elements is a power of 2
and drop the redundant upper limit (a 128-bit vector with more than 16 elements
would have each element < 8 bits, not possible).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@268422 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TargetInfo.cpp