[llvm] r183521 - Optimize BitVector::all().
Jay Foad
jay.foad at gmail.com
Fri Jun 7 07:52:17 PDT 2013
On 7 June 2013 15:14, Benjamin Kramer <benny.kra at googlemail.com> wrote:
> + // For the last word check that the lower bits are ones. The unused
> bits are
> + // always zero.
> + return Bits[NumBitWords(size()) - 1] == ~(~0UL << (Size %
> BITWORD_SIZE));
>
This looks like it will do the wrong thing if Size is a multiple of
BITWORD_SIZE.
Jay.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130607/c81dfbd2/attachment.html>
More information about the llvm-commits
mailing list