[llvm] e49f8ee - [NFC][llvm-reduce] Do show `-ir-passes` in help

Roman Lebedev via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 20 09:42:40 PST 2022


Author: Roman Lebedev
Date: 2022-12-20T20:42:25+03:00
New Revision: e49f8eef41d58a9b55cb4347826d353ecf170f8b

URL: https://github.com/llvm/llvm-project/commit/e49f8eef41d58a9b55cb4347826d353ecf170f8b
DIFF: https://github.com/llvm/llvm-project/commit/e49f8eef41d58a9b55cb4347826d353ecf170f8b.diff

LOG: [NFC][llvm-reduce] Do show `-ir-passes` in help

It's a bit non-useful when llvm-reduce runs a pass,
a testcase for a crash in which is being reduced in the first place :)

Added: 
    

Modified: 
    llvm/tools/llvm-reduce/deltas/RunIRPasses.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-reduce/deltas/RunIRPasses.cpp b/llvm/tools/llvm-reduce/deltas/RunIRPasses.cpp
index 51862393f3fe6..661a6693a99ac 100644
--- a/llvm/tools/llvm-reduce/deltas/RunIRPasses.cpp
+++ b/llvm/tools/llvm-reduce/deltas/RunIRPasses.cpp
@@ -14,12 +14,15 @@
 
 using namespace llvm;
 
+extern cl::OptionCategory LLVMReduceOptions;
+
 static cl::opt<std::string> PassPipeline(
     "ir-passes",
     cl::desc("A textual description of the pass pipeline, same as "
              "what's passed to `opt -passes`."),
     cl::init(
         "function(sroa,instcombine,gvn,simplifycfg,infer-address-spaces)"));
+    cl::cat(LLVMReduceOptions));
 
 static void runPasses(Oracle &O, Module &Program) {
   LoopAnalysisManager LAM;


        


More information about the llvm-commits mailing list