diff --git a/llvm/tools/llvm-reduce/deltas/Delta.h b/llvm/tools/llvm-reduce/deltas/Delta.h --- a/llvm/tools/llvm-reduce/deltas/Delta.h +++ b/llvm/tools/llvm-reduce/deltas/Delta.h @@ -105,7 +105,8 @@ /// /// Other implementations of the Delta Debugging algorithm can also be found in /// the CReduce, Delta, and Lithium projects. -void runDeltaPass(TestRunner &Test, ReductionFunc ExtractChunksFromModule); +void runDeltaPass(TestRunner &Test, ReductionFunc ExtractChunksFromModule, + StringRef Message); } // namespace llvm #endif diff --git a/llvm/tools/llvm-reduce/deltas/Delta.cpp b/llvm/tools/llvm-reduce/deltas/Delta.cpp --- a/llvm/tools/llvm-reduce/deltas/Delta.cpp +++ b/llvm/tools/llvm-reduce/deltas/Delta.cpp @@ -235,10 +235,11 @@ /// reduces the amount of chunks that are considered interesting by the /// given test. The number of chunks is determined by a preliminary run of the /// reduction pass where no change must be made to the module. -void llvm::runDeltaPass(TestRunner &Test, - ReductionFunc ExtractChunksFromModule) { +void llvm::runDeltaPass(TestRunner &Test, ReductionFunc ExtractChunksFromModule, + StringRef Message) { assert(!verifyReducerWorkItem(Test.getProgram(), &errs()) && "input module is broken before making changes"); + errs() << "*** " << Message << "...\n"; SmallString<128> CurrentFilepath; if (!isReduced(Test.getProgram(), Test, CurrentFilepath)) { @@ -275,6 +276,7 @@ if (!Targets) { if (Verbose) errs() << "\nNothing to reduce\n"; + errs() << "----------------------------\n"; return; } @@ -412,4 +414,5 @@ Test.setProgram(std::move(ReducedProgram)); if (Verbose) errs() << "Couldn't increase anymore.\n"; + errs() << "----------------------------\n"; } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceAliases.cpp b/llvm/tools/llvm-reduce/deltas/ReduceAliases.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceAliases.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceAliases.cpp @@ -30,7 +30,5 @@ } void llvm::reduceAliasesDeltaPass(TestRunner &Test) { - errs() << "*** Reducing Aliases ...\n"; - runDeltaPass(Test, extractAliasesFromModule); - errs() << "----------------------------\n"; + runDeltaPass(Test, extractAliasesFromModule, "Reducing Aliases"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceArguments.cpp b/llvm/tools/llvm-reduce/deltas/ReduceArguments.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceArguments.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceArguments.cpp @@ -119,6 +119,5 @@ } void llvm::reduceArgumentsDeltaPass(TestRunner &Test) { - outs() << "*** Reducing Arguments...\n"; - runDeltaPass(Test, extractArgumentsFromModule); + runDeltaPass(Test, extractArgumentsFromModule, "Reducing Arguments"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceAttributes.cpp b/llvm/tools/llvm-reduce/deltas/ReduceAttributes.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceAttributes.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceAttributes.cpp @@ -178,6 +178,5 @@ } void llvm::reduceAttributesDeltaPass(TestRunner &Test) { - outs() << "*** Reducing Attributes...\n"; - runDeltaPass(Test, extractAttributesFromModule); + runDeltaPass(Test, extractAttributesFromModule, "Reducing Attributes"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp b/llvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp @@ -173,6 +173,5 @@ } void llvm::reduceBasicBlocksDeltaPass(TestRunner &Test) { - errs() << "*** Reducing Basic Blocks...\n"; - runDeltaPass(Test, extractBasicBlocksFromModule); + runDeltaPass(Test, extractBasicBlocksFromModule, "Reducing Basic Blocks"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceDIMetadata.cpp b/llvm/tools/llvm-reduce/deltas/ReduceDIMetadata.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceDIMetadata.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceDIMetadata.cpp @@ -96,7 +96,5 @@ } void llvm::reduceDIMetadataDeltaPass(TestRunner &Test) { - outs() << "*** Reducing DIMetadata...\n"; - runDeltaPass(Test, extractDIMetadataFromModule); - outs() << "----------------------------\n"; + runDeltaPass(Test, extractDIMetadataFromModule, "Reducing DIMetadata"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceFunctionBodies.cpp b/llvm/tools/llvm-reduce/deltas/ReduceFunctionBodies.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceFunctionBodies.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceFunctionBodies.cpp @@ -31,7 +31,6 @@ } void llvm::reduceFunctionBodiesDeltaPass(TestRunner &Test) { - errs() << "*** Reducing Function Bodies...\n"; - runDeltaPass(Test, extractFunctionBodiesFromModule); - errs() << "----------------------------\n"; + runDeltaPass(Test, extractFunctionBodiesFromModule, + "Reducing Function Bodies"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceFunctions.cpp b/llvm/tools/llvm-reduce/deltas/ReduceFunctions.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceFunctions.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceFunctions.cpp @@ -50,7 +50,5 @@ } void llvm::reduceFunctionsDeltaPass(TestRunner &Test) { - errs() << "*** Reducing Functions...\n"; - runDeltaPass(Test, extractFunctionsFromModule); - errs() << "----------------------------\n"; + runDeltaPass(Test, extractFunctionsFromModule, "Reducing Functions"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceGlobalObjects.cpp b/llvm/tools/llvm-reduce/deltas/ReduceGlobalObjects.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceGlobalObjects.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceGlobalObjects.cpp @@ -31,6 +31,5 @@ } void llvm::reduceGlobalObjectsDeltaPass(TestRunner &Test) { - outs() << "*** Reducing GlobalObjects...\n"; - runDeltaPass(Test, reduceGOs); + runDeltaPass(Test, reduceGOs, "Reducing GlobalObjects"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceGlobalValues.cpp b/llvm/tools/llvm-reduce/deltas/ReduceGlobalValues.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceGlobalValues.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceGlobalValues.cpp @@ -58,6 +58,5 @@ } void llvm::reduceGlobalValuesDeltaPass(TestRunner &Test) { - outs() << "*** Reducing GlobalValues...\n"; - runDeltaPass(Test, reduceGVs); + runDeltaPass(Test, reduceGVs, "Reducing GlobalValues"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceGlobalVarInitializers.cpp b/llvm/tools/llvm-reduce/deltas/ReduceGlobalVarInitializers.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceGlobalVarInitializers.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceGlobalVarInitializers.cpp @@ -29,6 +29,5 @@ } void llvm::reduceGlobalsInitializersDeltaPass(TestRunner &Test) { - outs() << "*** Reducing GVs initializers...\n"; - runDeltaPass(Test, extractGVsFromModule); + runDeltaPass(Test, extractGVsFromModule, "Reducing GV Initializers"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp b/llvm/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp @@ -59,6 +59,5 @@ } void llvm::reduceGlobalsDeltaPass(TestRunner &Test) { - outs() << "*** Reducing GVs...\n"; - runDeltaPass(Test, extractGVsFromModule); + runDeltaPass(Test, extractGVsFromModule, "Reducing GlobalVariables"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceIRReferences.cpp b/llvm/tools/llvm-reduce/deltas/ReduceIRReferences.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceIRReferences.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceIRReferences.cpp @@ -67,16 +67,15 @@ } void llvm::reduceIRInstructionReferencesDeltaPass(TestRunner &Test) { - outs() << "*** Reducing IR references from instructions...\n"; - runDeltaPass(Test, stripIRFromInstructions); + runDeltaPass(Test, stripIRFromInstructions, + "Reducing IR references from instructions"); } void llvm::reduceIRBlockReferencesDeltaPass(TestRunner &Test) { - outs() << "*** Reducing IR references from blocks...\n"; - runDeltaPass(Test, stripIRFromBlocks); + runDeltaPass(Test, stripIRFromBlocks, "Reducing IR references from blocks"); } void llvm::reduceIRFunctionReferencesDeltaPass(TestRunner &Test) { - outs() << "*** Reducing IR references from functions...\n"; - runDeltaPass(Test, stripIRFromFunctions); + runDeltaPass(Test, stripIRFromFunctions, + "Reducing IR references from functions"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceInstructionFlagsMIR.cpp b/llvm/tools/llvm-reduce/deltas/ReduceInstructionFlagsMIR.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceInstructionFlagsMIR.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceInstructionFlagsMIR.cpp @@ -30,6 +30,5 @@ } void llvm::reduceInstructionFlagsMIRDeltaPass(TestRunner &Test) { - outs() << "*** Reducing Instruction flags...\n"; - runDeltaPass(Test, removeFlagsFromModule); + runDeltaPass(Test, removeFlagsFromModule, "Reducing Instruction Flags"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceInstructions.cpp b/llvm/tools/llvm-reduce/deltas/ReduceInstructions.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceInstructions.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceInstructions.cpp @@ -52,6 +52,5 @@ } void llvm::reduceInstructionsDeltaPass(TestRunner &Test) { - outs() << "*** Reducing Instructions...\n"; - runDeltaPass(Test, extractInstrFromModule); + runDeltaPass(Test, extractInstrFromModule, "Reducing Instructions"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceInstructionsMIR.cpp b/llvm/tools/llvm-reduce/deltas/ReduceInstructionsMIR.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceInstructionsMIR.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceInstructionsMIR.cpp @@ -158,6 +158,5 @@ } void llvm::reduceInstructionsMIRDeltaPass(TestRunner &Test) { - outs() << "*** Reducing Instructions...\n"; - runDeltaPass(Test, extractInstrFromModule); + runDeltaPass(Test, extractInstrFromModule, "Reducing Instructions"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceMetadata.cpp b/llvm/tools/llvm-reduce/deltas/ReduceMetadata.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceMetadata.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceMetadata.cpp @@ -76,7 +76,5 @@ } void llvm::reduceMetadataDeltaPass(TestRunner &Test) { - outs() << "*** Reducing Metadata...\n"; - runDeltaPass(Test, extractMetadataFromModule); - outs() << "----------------------------\n"; + runDeltaPass(Test, extractMetadataFromModule, "Reducing Metadata"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceModuleData.cpp b/llvm/tools/llvm-reduce/deltas/ReduceModuleData.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceModuleData.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceModuleData.cpp @@ -25,6 +25,5 @@ } void llvm::reduceModuleDataDeltaPass(TestRunner &Test) { - outs() << "*** Reducing Module Data...\n"; - runDeltaPass(Test, clearModuleData); + runDeltaPass(Test, clearModuleData, "Reducing Module Data"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp b/llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp @@ -107,6 +107,5 @@ } void llvm::reduceOpcodesDeltaPass(TestRunner &Test) { - outs() << "*** Reducing Opcodes...\n"; - runDeltaPass(Test, replaceOpcodesInModule); + runDeltaPass(Test, replaceOpcodesInModule, "Reducing Opcodes"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceOperandBundles.cpp b/llvm/tools/llvm-reduce/deltas/ReduceOperandBundles.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceOperandBundles.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceOperandBundles.cpp @@ -104,6 +104,6 @@ } void llvm::reduceOperandBundesDeltaPass(TestRunner &Test) { - outs() << "*** Reducing OperandBundes...\n"; - runDeltaPass(Test, extractOperandBundesFromModule); + runDeltaPass(Test, extractOperandBundesFromModule, + "Reducing Operand Bundles"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceOperands.cpp b/llvm/tools/llvm-reduce/deltas/ReduceOperands.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceOperands.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceOperands.cpp @@ -82,7 +82,6 @@ } void llvm::reduceOperandsOneDeltaPass(TestRunner &Test) { - errs() << "*** Reducing Operands to one...\n"; auto ReduceValue = [](Use &Op) -> Value * { if (!shouldReduceOperand(Op)) return nullptr; @@ -117,13 +116,15 @@ return nullptr; }; - runDeltaPass(Test, [ReduceValue](Oracle &O, Module &Program) { - extractOperandsFromModule(O, Program, ReduceValue); - }); + runDeltaPass( + Test, + [ReduceValue](Oracle &O, Module &Program) { + extractOperandsFromModule(O, Program, ReduceValue); + }, + "Reducing Operands to one"); } void llvm::reduceOperandsZeroDeltaPass(TestRunner &Test) { - errs() << "*** Reducing Operands to zero...\n"; auto ReduceValue = [](Use &Op) -> Value * { if (!shouldReduceOperand(Op)) return nullptr; @@ -134,13 +135,15 @@ // Don't replace existing zeroes. return isZero(Op) ? nullptr : Constant::getNullValue(Op->getType()); }; - runDeltaPass(Test, [ReduceValue](Oracle &O, Module &Program) { - extractOperandsFromModule(O, Program, ReduceValue); - }); + runDeltaPass( + Test, + [ReduceValue](Oracle &O, Module &Program) { + extractOperandsFromModule(O, Program, ReduceValue); + }, + "Reducing Operands to zero"); } void llvm::reduceOperandsNaNDeltaPass(TestRunner &Test) { - errs() << "*** Reducing Operands to NaN...\n"; auto ReduceValue = [](Use &Op) -> Value * { Type *Ty = Op->getType(); if (!Ty->isFPOrFPVectorTy()) @@ -160,7 +163,10 @@ return ConstantFP::getQNaN(Ty); }; - runDeltaPass(Test, [ReduceValue](Oracle &O, Module &Program) { - extractOperandsFromModule(O, Program, ReduceValue); - }); + runDeltaPass( + Test, + [ReduceValue](Oracle &O, Module &Program) { + extractOperandsFromModule(O, Program, ReduceValue); + }, + "Reducing Operands to NaN"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceOperandsSkip.cpp b/llvm/tools/llvm-reduce/deltas/ReduceOperandsSkip.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceOperandsSkip.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceOperandsSkip.cpp @@ -222,6 +222,6 @@ } void llvm::reduceOperandsSkipDeltaPass(TestRunner &Test) { - errs() << "*** Reducing operands by skipping over instructions ...\n"; - runDeltaPass(Test, extractOperandsFromModule); + runDeltaPass(Test, extractOperandsFromModule, + "Reducing operands by skipping over instructions"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceOperandsToArgs.cpp b/llvm/tools/llvm-reduce/deltas/ReduceOperandsToArgs.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceOperandsToArgs.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceOperandsToArgs.cpp @@ -195,6 +195,6 @@ } void llvm::reduceOperandsToArgsDeltaPass(TestRunner &Test) { - outs() << "*** Converting operands to function arguments ...\n"; - return runDeltaPass(Test, reduceOperandsToArgs); + runDeltaPass(Test, reduceOperandsToArgs, + "Converting operands to function arguments"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceRegisterDefs.cpp b/llvm/tools/llvm-reduce/deltas/ReduceRegisterDefs.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceRegisterDefs.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceRegisterDefs.cpp @@ -117,6 +117,5 @@ } void llvm::reduceRegisterDefsMIRDeltaPass(TestRunner &Test) { - outs() << "*** Reducing register defs...\n"; - runDeltaPass(Test, removeDefsFromModule); + runDeltaPass(Test, removeDefsFromModule, "Reducing register defs"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceRegisterMasks.cpp b/llvm/tools/llvm-reduce/deltas/ReduceRegisterMasks.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceRegisterMasks.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceRegisterMasks.cpp @@ -68,6 +68,5 @@ } void llvm::reduceRegisterMasksMIRDeltaPass(TestRunner &Test) { - outs() << "*** Reducing register masks...\n"; - runDeltaPass(Test, reduceMasksInModule); + runDeltaPass(Test, reduceMasksInModule, "Reducing register masks"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceRegisterUses.cpp b/llvm/tools/llvm-reduce/deltas/ReduceRegisterUses.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceRegisterUses.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceRegisterUses.cpp @@ -62,6 +62,5 @@ } void llvm::reduceRegisterUsesMIRDeltaPass(TestRunner &Test) { - outs() << "*** Reducing register uses...\n"; - runDeltaPass(Test, removeUsesFromModule); + runDeltaPass(Test, removeUsesFromModule, "Reducing register uses"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceSpecialGlobals.cpp b/llvm/tools/llvm-reduce/deltas/ReduceSpecialGlobals.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceSpecialGlobals.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceSpecialGlobals.cpp @@ -37,7 +37,6 @@ } void llvm::reduceSpecialGlobalsDeltaPass(TestRunner &Test) { - errs() << "*** Reducing Special Globals ...\n"; - runDeltaPass(Test, extractSpecialGlobalsFromModule); - errs() << "----------------------------\n"; + runDeltaPass(Test, extractSpecialGlobalsFromModule, + "Reducing Special Globals"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceUsingSimplifyCFG.cpp b/llvm/tools/llvm-reduce/deltas/ReduceUsingSimplifyCFG.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceUsingSimplifyCFG.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceUsingSimplifyCFG.cpp @@ -29,6 +29,5 @@ } void llvm::reduceUsingSimplifyCFGDeltaPass(TestRunner &Test) { - outs() << "*** Reducing using SimplifyCFG...\n"; - runDeltaPass(Test, reduceUsingSimplifyCFG); + runDeltaPass(Test, reduceUsingSimplifyCFG, "Reducing using SimplifyCFG"); } diff --git a/llvm/tools/llvm-reduce/deltas/ReduceVirtualRegisters.cpp b/llvm/tools/llvm-reduce/deltas/ReduceVirtualRegisters.cpp --- a/llvm/tools/llvm-reduce/deltas/ReduceVirtualRegisters.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceVirtualRegisters.cpp @@ -41,6 +41,6 @@ } void llvm::reduceVirtualRegisterHintsDeltaPass(TestRunner &Test) { - outs() << "*** Reducing virtual register hints from functions...\n"; - runDeltaPass(Test, dropRegisterHintsFromFunctions); + runDeltaPass(Test, dropRegisterHintsFromFunctions, + "Reducing virtual register hints from functions"); } diff --git a/llvm/tools/llvm-reduce/deltas/RunIRPasses.cpp b/llvm/tools/llvm-reduce/deltas/RunIRPasses.cpp --- a/llvm/tools/llvm-reduce/deltas/RunIRPasses.cpp +++ b/llvm/tools/llvm-reduce/deltas/RunIRPasses.cpp @@ -47,7 +47,5 @@ } void llvm::runIRPassesDeltaPass(TestRunner &Test) { - errs() << "*** Running passes ...\n"; - runDeltaPass(Test, runPasses); - errs() << "----------------------------\n"; + runDeltaPass(Test, runPasses, "Running passes"); } diff --git a/llvm/tools/llvm-reduce/deltas/SimplifyInstructions.cpp b/llvm/tools/llvm-reduce/deltas/SimplifyInstructions.cpp --- a/llvm/tools/llvm-reduce/deltas/SimplifyInstructions.cpp +++ b/llvm/tools/llvm-reduce/deltas/SimplifyInstructions.cpp @@ -45,6 +45,5 @@ } void llvm::simplifyInstructionsDeltaPass(TestRunner &Test) { - outs() << "*** Simplifying Instructions...\n"; - runDeltaPass(Test, extractInstrFromModule); + runDeltaPass(Test, extractInstrFromModule, "Simplifying Instructions"); } diff --git a/llvm/tools/llvm-reduce/llvm-reduce.cpp b/llvm/tools/llvm-reduce/llvm-reduce.cpp --- a/llvm/tools/llvm-reduce/llvm-reduce.cpp +++ b/llvm/tools/llvm-reduce/llvm-reduce.cpp @@ -189,7 +189,7 @@ if (OutputFilename == "-") Tester.getProgram().print(outs(), nullptr); else - writeOutput(Tester.getProgram(), "\nDone reducing! Reduced testcase: "); + writeOutput(Tester.getProgram(), "Done reducing! Reduced testcase: "); return 0; }