diff options
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Fuzzer/FuzzerValueBitMap.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerValueBitMap.h b/llvm/lib/Fuzzer/FuzzerValueBitMap.h index f11de68252d..13d7cbd95dd 100644 --- a/llvm/lib/Fuzzer/FuzzerValueBitMap.h +++ b/llvm/lib/Fuzzer/FuzzerValueBitMap.h @@ -54,28 +54,6 @@ struct ValueBitMap { size_t SizeInBits() const { return kMapSizeInBits; } - size_t GetNumBitsSinceLastMerge() const { return NumBits; } - - // Merges 'Other' into 'this', clears 'Other', updates NumBits, - // returns true if new bits were added. - ATTRIBUTE_TARGET_POPCNT - bool MergeFrom(ValueBitMap &Other) { - uintptr_t Res = 0; - size_t OldNumBits = NumBits; - for (size_t i = 0; i < kMapSizeInWords; i++) { - auto O = Other.Map[i]; - auto M = Map[i]; - if (O) { - Map[i] = (M |= O); - Other.Map[i] = 0; - } - if (M) - Res += __builtin_popcountll(M); - } - NumBits = Res; - return OldNumBits < NumBits; - } - template <class Callback> ATTRIBUTE_NO_SANITIZE_ALL void ForEach(Callback CB) const { @@ -87,7 +65,6 @@ struct ValueBitMap { } private: - size_t NumBits = 0; uintptr_t Map[kMapSizeInWords] __attribute__((aligned(512))); }; |