mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-03 16:21:41 +00:00
[libFuzzer] do the merge faster and a bit less precise
llvm-svn: 269497
This commit is contained in:
parent
68b6b9da9e
commit
1748b79bc0
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user