From 1c8e05110c01254fc26ca3db90e9d8518957d815 Mon Sep 17 00:00:00 2001 From: Matt Morehouse Date: Tue, 1 Oct 2019 22:49:06 +0000 Subject: [libFuzzer] Remove lazy counters. Summary: Lazy counters haven't improved performance for large fuzz targets. Reviewers: kcc Reviewed By: kcc Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D67476 llvm-svn: 373403 --- compiler-rt/lib/fuzzer/FuzzerLoop.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'compiler-rt/lib/fuzzer/FuzzerLoop.cpp') diff --git a/compiler-rt/lib/fuzzer/FuzzerLoop.cpp b/compiler-rt/lib/fuzzer/FuzzerLoop.cpp index 96ab544b15c..df533e877d3 100644 --- a/compiler-rt/lib/fuzzer/FuzzerLoop.cpp +++ b/compiler-rt/lib/fuzzer/FuzzerLoop.cpp @@ -742,10 +742,6 @@ void Fuzzer::ReadAndExecuteSeedCorpora(Vector &CorporaFiles) { uint8_t dummy = 0; ExecuteCallback(&dummy, 0); - // Protect lazy counters here, after the once-init code has been executed. - if (Options.LazyCounters) - TPC.ProtectLazyCounters(); - if (CorporaFiles.empty()) { Printf("INFO: A corpus is not provided, starting from an empty corpus\n"); Unit U({'\n'}); // Valid ASCII input. -- cgit v1.2.3