Add BitVector::anyCommon().
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 14 May 2012 15:01:19 +0000 (15:01 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 14 May 2012 15:01:19 +0000 (15:01 +0000)
commit2fad493fe4182078f75c030fa7fc04b20dc17814
tree33a7b36bdd8dc189662240dc32669f8cda858097
parentf5cbda29cdb9c868f27dfa03ebe76103ca0a2dc5
Add BitVector::anyCommon().

The existing operation (A & B).any() is very slow.

llvm-svn: 156760
llvm/include/llvm/ADT/BitVector.h
llvm/unittests/ADT/BitVectorTest.cpp