diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2018-12-18 19:59:50 +0000 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2018-12-18 19:59:50 +0000 |
| commit | 20853a7807790a6b5ca13aab1edb0b4e96199915 (patch) | |
| tree | c094c3520a6424845d188297eac5bcc9600839e4 /llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp | |
| parent | 59ee2c536266724b13238bb988a324a1547a6fc8 (diff) | |
| download | bcm5719-llvm-20853a7807790a6b5ca13aab1edb0b4e96199915.tar.gz bcm5719-llvm-20853a7807790a6b5ca13aab1edb0b4e96199915.zip | |
[InstCombine] Simplify cttz/ctlz + icmp eq/ne into mask check
Checking whether a number has a certain number of trailing / leading
zeros means checking whether it is of the form XXXX1000 / 0001XXXX,
which can be done with an and+icmp.
Related to https://bugs.llvm.org/show_bug.cgi?id=28668. As a next
step, this can be extended to non-equality predicates.
Differential Revision: https://reviews.llvm.org/D55745
llvm-svn: 349530
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp')
0 files changed, 0 insertions, 0 deletions

