[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 109ff37430
commit a0788e7dd4
1 changed files with 2 additions and 1 deletions

View File

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