diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2003-07-30 20:15:56 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-07-30 20:15:56 +0000 |
commit | be6bf5668c386fafbd0a7e1b1305b9ac6ab60ce2 (patch) | |
tree | ff815e6c5f0935ce8c2fe3afee6316481e01dc93 /tools/bugpoint/Miscompilation.cpp | |
parent | 9d679cbc6cb5c7dc8cca87a1e1548c480fb056b8 (diff) | |
download | external_llvm-be6bf5668c386fafbd0a7e1b1305b9ac6ab60ce2.zip external_llvm-be6bf5668c386fafbd0a7e1b1305b9ac6ab60ce2.tar.gz external_llvm-be6bf5668c386fafbd0a7e1b1305b9ac6ab60ce2.tar.bz2 |
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
Diffstat (limited to 'tools/bugpoint/Miscompilation.cpp')
-rw-r--r-- | tools/bugpoint/Miscompilation.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
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; |