[llvm] r325487 - [llvm-opt-fuzzer] Add another pack of passes for continuous fuzzing
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 26 09:21:57 PST 2018
These are very nice!
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6573
On Mon, Feb 19, 2018 at 3:57 AM, Igor Laevsky via llvm-commits <
llvm-commits at lists.llvm.org> wrote:
> Author: igor.laevsky
> Date: Mon Feb 19 03:57:07 2018
> New Revision: 325487
>
> URL: http://llvm.org/viewvc/llvm-project?rev=325487&view=rev
> Log:
> [llvm-opt-fuzzer] Add another pack of passes for continuous fuzzing
>
> Differential Revision: https://reviews.llvm.org/D43384
>
>
> Modified:
> llvm/trunk/lib/FuzzMutate/FuzzerCLI.cpp
>
> Modified: llvm/trunk/lib/FuzzMutate/FuzzerCLI.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/
> FuzzMutate/FuzzerCLI.cpp?rev=325487&r1=325486&r2=325487&view=diff
> ============================================================
> ==================
> --- llvm/trunk/lib/FuzzMutate/FuzzerCLI.cpp (original)
> +++ llvm/trunk/lib/FuzzMutate/FuzzerCLI.cpp Mon Feb 19 03:57:07 2018
> @@ -83,16 +83,36 @@ void llvm::handleExecNameEncodedOptimize
> SmallVector<StringRef, 4> Opts;
> NameAndArgs.second.split(Opts, '-');
> for (StringRef Opt : Opts) {
> - if (Opt.startswith("instcombine")) {
> + if (Opt == "instcombine") {
> Args.push_back("-passes=instcombine");
> - } else if (Opt.startswith("earlycse")) {
> + } else if (Opt == "earlycse") {
> Args.push_back("-passes=early-cse");
> - } else if (Opt.startswith("simplifycfg")) {
> + } else if (Opt == "simplifycfg") {
> Args.push_back("-passes=simplify-cfg");
> - } else if (Opt.startswith("gvn")) {
> + } else if (Opt == "gvn") {
> Args.push_back("-passes=gvn");
> - } else if (Opt.startswith("sccp")) {
> + } else if (Opt == "sccp") {
> Args.push_back("-passes=sccp");
> +
> + } else if (Opt == "loop_predication") {
> + Args.push_back("-passes=loop-predication");
> + } else if (Opt == "guard_widening") {
> + Args.push_back("-passes=guard-widening");
> + } else if (Opt == "loop_rotate") {
> + Args.push_back("-passes=loop(rotate)");
> + } else if (Opt == "loop_unswitch") {
> + Args.push_back("-passes=loop(unswitch)");
> + } else if (Opt == "loop_unroll") {
> + Args.push_back("-passes=unroll");
> + } else if (Opt == "loop_vectorize") {
> + Args.push_back("-passes=loop-vectorize");
> + } else if (Opt == "licm") {
> + Args.push_back("-passes=licm");
> + } else if (Opt == "indvars") {
> + Args.push_back("-passes=indvars");
> + } else if (Opt == "strength_reduce") {
> + Args.push_back("-passes=strength-reduce");
> +
> } else if (Triple(Opt).getArch()) {
> Args.push_back("-mtriple=" + Opt.str());
> } else {
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180226/b2e912ee/attachment.html>
More information about the llvm-commits
mailing list