From: Roman Lebedev Date: Tue, 20 Dec 2022 17:35:08 +0000 (+0300) Subject: [NFC][llvm-reduce] Do show `-ir-passes` in help X-Git-Tag: upstream/17.0.6~23092 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e49f8eef41d58a9b55cb4347826d353ecf170f8b;p=platform%2Fupstream%2Fllvm.git [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 :) --- diff --git a/llvm/tools/llvm-reduce/deltas/RunIRPasses.cpp b/llvm/tools/llvm-reduce/deltas/RunIRPasses.cpp index 5186239..661a669 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 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;