mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user