[PATCH] D36275: Implement llvm-isel-fuzzer for fuzzing instruction selection
Kostya Serebryany via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 3 13:17:16 PDT 2017
kcc added inline comments.
================
Comment at: tools/llvm-isel-fuzzer/llvm-isel-fuzzer.cpp:99
+ std::unique_ptr<Module> M;
+ if (Size == 0 || (Size == 1 && *Data == '\n'))
+ // We get bogus data given an empty corpus - just create a new module.
----------------
Will it be simpler and better to just assume that Size <= 1 is uninteresting and means a new module?
Repository:
rL LLVM
https://reviews.llvm.org/D36275
More information about the llvm-commits
mailing list