summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/LazyValueInfo.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-06-07 00:57:57 +0000
committerCraig Topper <craig.topper@gmail.com>2017-06-07 00:57:57 +0000
commitb88a9d129bd0ee422b6c8d31ee0d8347a4509d41 (patch)
tree5aa0fe8657dba51635bd68149ed94323a7b4c14c /llvm/lib/Analysis/LazyValueInfo.cpp
parent3b34061367c8a81b157c652fb8972884c3acc8b8 (diff)
downloadbcm5719-llvm-b88a9d129bd0ee422b6c8d31ee0d8347a4509d41.tar.gz
bcm5719-llvm-b88a9d129bd0ee422b6c8d31ee0d8347a4509d41.zip
[APInt] Add a isOneValue method that can determine if a number is 1 by only using getActiveBits/countLeadingZeros
Previously you would have to use operator==(uint64_t) which does the getActiveBits call and a uint64_t comparison. But we can get all we need to know from the getActiveBits call. This method will be used in another commit. llvm-svn: 304854
Diffstat (limited to 'llvm/lib/Analysis/LazyValueInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud