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
This commit is contained in:
Misha Brukman
2003-07-30 20:15:56 +00:00
parent 9d679cbc6c
commit be6bf5668c
3 changed files with 39 additions and 14 deletions
+1 -5
View File
@@ -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;