[PATCH] D49621: [libFuzzer] Initial implementation of weighted mutation leveraging during runtime.

Max Moroz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 2 09:21:26 PDT 2018


Dor1s added inline comments.


================
Comment at: lib/fuzzer/FuzzerMutate.cpp:606
+    Weights[i] = Stats[i] / SumOfStats;
+  Distribution = std::discrete_distribution<size_t>(Weights.begin(), Weights.end());
+}
----------------
morehouse wrote:
> I think you can do `Distribution.param(Weights)` rather than reconstructing.  Might be faster.
Oh, right. Thanks for spotting, Matt! Kode, please remove lines 603-605 and try passing `Stats` to the distribution.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D49621





More information about the llvm-commits mailing list