summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2018-12-18 19:59:50 +0000
committerNikita Popov <nikita.ppv@gmail.com>2018-12-18 19:59:50 +0000
commit20853a7807790a6b5ca13aab1edb0b4e96199915 (patch)
treec094c3520a6424845d188297eac5bcc9600839e4 /llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h
parent59ee2c536266724b13238bb988a324a1547a6fc8 (diff)
downloadbcm5719-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/VPRecipeBuilder.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud