[PATCH] D42410: [llvm-opt-fuzzer] Add couple of popular passes

Justin Bogner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 23 11:05:59 PST 2018


bogner accepted this revision.
bogner added a comment.
This revision is now accepted and ready to land.

No complaints here. One minor question about the implementation.



================
Comment at: lib/FuzzMutate/FuzzerCLI.cpp:87-88
       Args.push_back("-passes=instcombine");
+    } else if (Opt.startswith("earlycse")) {
+      Args.push_back("-passes=early-cse");
+    } else if (Opt.startswith("simplifycfg")) {
----------------
Maybe we've already gone over this, but why is this startswith() rather than equals()?


https://reviews.llvm.org/D42410





More information about the llvm-commits mailing list