aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineOperand.cpp
diff options
context:
space:
mode:
authorDokyung Song <dokyungs@google.com>2020-09-01 16:22:59 +0000
committerDokyung Song <dokyungs@google.com>2020-09-03 19:47:00 +0000
commitb53243e19496ae59ae1ce457a40e3ea610011fd1 (patch)
treece7d49104a2a549c0fdbb6d2eb06e48a8748a217 /llvm/lib/CodeGen/MachineOperand.cpp
parenta09eef113f171809c642d790100799bc529011a9 (diff)
downloadllvm-b53243e19496ae59ae1ce457a40e3ea610011fd1.zip
llvm-b53243e19496ae59ae1ce457a40e3ea610011fd1.tar.gz
llvm-b53243e19496ae59ae1ce457a40e3ea610011fd1.tar.bz2
[libFuzzer] Evenly select inputs to cross over with from the corpus regardless of the input's coverage.
This patch adds an option "cross_over_uniform_dist", which, if 1, considers all inputs in the corpus for the crossover input selection. More specifically, this patch uses a uniform distribution of all inputs in the corpus for the CrossOver input selection. Note that input selection for mutation is still fully determined by the scheduling policy (i.e., vanilla or Entropic); the uniform distribution only applies to the secondary input selection, only for the crossover mutation of the base input chosen by the scheduling policy. This way the corpus inputs that have useful fragments in them, even though they are deprioritized by the scheduling policy, have chances of getting mixed with other inputs that are prioritized and selected as base input for mutation. Differential Revision: https://reviews.llvm.org/D86954
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions