diff options
author | Logan Chien <tzuhsiang.chien@gmail.com> | 2015-07-13 15:37:30 +0000 |
---|---|---|
committer | Logan Chien <tzuhsiang.chien@gmail.com> | 2015-07-13 15:37:30 +0000 |
commit | 0a43abc9f841246ba2974fe189628d7c45484cb6 (patch) | |
tree | 9e64cc838db184a3b43bc4c81dcac37fa15a14d8 /llvm/lib/Support/CommandLine.cpp | |
parent | 69bf1ce03a52bac5050ffaae5f311541d573bb99 (diff) | |
download | bcm5719-llvm-0a43abc9f841246ba2974fe189628d7c45484cb6.tar.gz bcm5719-llvm-0a43abc9f841246ba2974fe189628d7c45484cb6.zip |
ARM: Fix cttz expansion on vector types.
The 64/128-bit vector types are legal if NEON instructions are
available. However, there was no matching patterns for @llvm.cttz.*()
intrinsics and result in fatal error.
This commit fixes the problem by lowering cttz to:
a. ctpop((x & -x) - 1)
b. width - ctlz(x & -x) - 1
llvm-svn: 242037
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions