commit | 9082d1200011b967ff86e7056efa229598d8bb7f | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@gmail.com> | Wed Jun 07 00:57:57 2017 +0000 |
committer | Craig Topper <craig.topper@gmail.com> | Wed Jun 07 00:57:57 2017 +0000 |
tree | 2bd62d298fb2d7b56a56537a134a7ac58b156434 | |
parent | 04631fc848114454964152f97ae45866f77e427a [diff] |
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304854 91177308-0d34-0410-b5e6-96231b3b80d8