From e49f8eef41d58a9b55cb4347826d353ecf170f8b Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Tue, 20 Dec 2022 20:35:08 +0300 Subject: [PATCH] [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 :) --- llvm/tools/llvm-reduce/deltas/RunIRPasses.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.7.4