[PATCH] D42410: [llvm-opt-fuzzer] Add couple of popular passes
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 24 01:59:38 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL323314: [llvm-opt-fuzzer] Add couple of popular passes (authored by igor.laevsky, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D42410?vs=131022&id=131209#toc
Repository:
rL LLVM
https://reviews.llvm.org/D42410
Files:
llvm/trunk/lib/FuzzMutate/FuzzerCLI.cpp
Index: llvm/trunk/lib/FuzzMutate/FuzzerCLI.cpp
===================================================================
--- llvm/trunk/lib/FuzzMutate/FuzzerCLI.cpp
+++ llvm/trunk/lib/FuzzMutate/FuzzerCLI.cpp
@@ -84,6 +84,14 @@
for (StringRef Opt : Opts) {
if (Opt.startswith("instcombine")) {
Args.push_back("-passes=instcombine");
+ } else if (Opt.startswith("earlycse")) {
+ Args.push_back("-passes=early-cse");
+ } else if (Opt.startswith("simplifycfg")) {
+ Args.push_back("-passes=simplify-cfg");
+ } else if (Opt.startswith("gvn")) {
+ Args.push_back("-passes=gvn");
+ } else if (Opt.startswith("sccp")) {
+ Args.push_back("-passes=sccp");
} else if (Triple(Opt).getArch()) {
Args.push_back("-mtriple=" + Opt.str());
} else {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42410.131209.patch
Type: text/x-patch
Size: 791 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180124/a58cc315/attachment.bin>
More information about the llvm-commits
mailing list