1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

[libFuzzer] do the merge faster and a bit less precise

llvm-svn: 269497
This commit is contained in:
Kostya Serebryany 2016-05-13 22:11:23 +00:00
parent 68b6b9da9e
commit 1748b79bc0

View File

@ -549,9 +549,10 @@ UnitVector Fuzzer::FindExtraUnits(const UnitVector &Initial,
PrintStats(Stat);
size_t NewSize = Corpus.size();
assert(NewSize <= OldSize);
Res.swap(Corpus);
if (NewSize == OldSize)
if (NewSize + 5 >= OldSize)
break;
OldSize = NewSize;
}