From be6bf5668c386fafbd0a7e1b1305b9ac6ab60ce2 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Wed, 30 Jul 2003 20:15:56 +0000 Subject: CodeGeneratorBug.cpp: * Temporarily externing InputArgv to print it out for the benefit of LLI command needed to reproduce the result. * Print out the list of functions currently being tested * ListReducer now returns a bool if there was a failure, so test for it ListReducer.h: * Handle the case where there is no problem by returning true if failure is found. Also correctly handles the case when there is only 1 pass/function. Miscompilation.cpp: * ListReducer now returns a bool if there was a failure, so test for it git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7434 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/bugpoint/Miscompilation.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'tools/bugpoint/Miscompilation.cpp') diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp index 833dd43..b65b4a6 100644 --- a/tools/bugpoint/Miscompilation.cpp +++ b/tools/bugpoint/Miscompilation.cpp @@ -268,12 +268,8 @@ bool BugDriver::debugMiscompilation() { return false; // Problem found } - // Figure out which transformations miscompile the input program. - unsigned OldSize = PassesToRun.size(); - ReduceMiscompilingPasses(*this).reduceList(PassesToRun); - // Make sure something was miscompiled... - if (PassesToRun.size() == OldSize) { + if (!ReduceMiscompilingPasses(*this).reduceList(PassesToRun)) { std::cerr << "*** Optimized program matches reference output! No problem " << "detected...\nbugpoint can't help you with your problem!\n"; return false; -- cgit v1.1