[NFC][llvm-reduce] Do show `-ir-passes` in help
authorRoman Lebedev <lebedev.ri@gmail.com>
Tue, 20 Dec 2022 17:35:08 +0000 (20:35 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Tue, 20 Dec 2022 17:42:25 +0000 (20:42 +0300)
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 :)

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

index 5186239..661a669 100644 (file)
 
 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;