[PATCH] D16419: Use std::piecewise_constant_distribution instead of ad-hoc binary search.

Ivan Krasin via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 21 10:49:10 PST 2016


krasin created this revision.
krasin added a reviewer: aizatsky.
krasin added subscribers: kcc, llvm-commits.

Fix the issue with the most recently discovered unit receiving much less attention.

Note: I had to change the seed for one test to make it pass. Alternatively,
the number of runs could be increased. I believe that the average time of
'foo' discovery is not increased, just seed=1 was particularly convenient
for the previous PRNG scheme used.

http://reviews.llvm.org/D16419

Files:
  lib/Fuzzer/FuzzerInternal.h
  lib/Fuzzer/FuzzerLoop.cpp
  lib/Fuzzer/test/fuzzer-traces.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16419.45566.patch
Type: text/x-patch
Size: 4135 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160121/10245108/attachment.bin>


More information about the llvm-commits mailing list