From: Kostya Serebryany Date: Thu, 20 Jul 2017 20:15:13 +0000 (+0000) Subject: [libFuzzer] delete stale code X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29fa98aa846aa6ccb5ad6ebaee7a196d6a9e7c11;p=llvm [libFuzzer] delete stale code git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308663 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Fuzzer/FuzzerValueBitMap.h b/lib/Fuzzer/FuzzerValueBitMap.h index f11de68252d..13d7cbd95dd 100644 --- a/lib/Fuzzer/FuzzerValueBitMap.h +++ b/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 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))); };