mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
If loopextract breaks the program provide output so that we can repro the
problem. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21790 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6d60924e3d
commit
56c418676a
@ -260,7 +260,6 @@ static bool ExtractLoops(BugDriver &BD,
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::cerr << "Extracted a loop from the breaking portion of the program.\n";
|
std::cerr << "Extracted a loop from the breaking portion of the program.\n";
|
||||||
delete ToOptimize;
|
|
||||||
|
|
||||||
// Bugpoint is intentionally not very trusting of LLVM transformations. In
|
// Bugpoint is intentionally not very trusting of LLVM transformations. In
|
||||||
// particular, we're not going to assume that the loop extractor works, so
|
// particular, we're not going to assume that the loop extractor works, so
|
||||||
@ -275,10 +274,19 @@ static bool ExtractLoops(BugDriver &BD,
|
|||||||
std::cerr << " *** ERROR: Loop extraction broke the program. :("
|
std::cerr << " *** ERROR: Loop extraction broke the program. :("
|
||||||
<< " Please report a bug!\n";
|
<< " Please report a bug!\n";
|
||||||
std::cerr << " Continuing on with un-loop-extracted version.\n";
|
std::cerr << " Continuing on with un-loop-extracted version.\n";
|
||||||
|
|
||||||
|
BD.writeProgramToFile("bugpoint-loop-extract-fail-tno.bc", ToNotOptimize);
|
||||||
|
BD.writeProgramToFile("bugpoint-loop-extract-fail-to.bc", ToOptimize);
|
||||||
|
BD.writeProgramToFile("bugpoint-loop-extract-fail-to-le.bc",
|
||||||
|
ToOptimizeLoopExtracted);
|
||||||
|
|
||||||
|
std::cerr << "Please submit the bugpoint-loop-extract-fail-*.bc files.\n";
|
||||||
|
delete ToOptimize;
|
||||||
delete ToNotOptimize;
|
delete ToNotOptimize;
|
||||||
delete ToOptimizeLoopExtracted;
|
delete ToOptimizeLoopExtracted;
|
||||||
return MadeChange;
|
return MadeChange;
|
||||||
}
|
}
|
||||||
|
delete ToOptimize;
|
||||||
BD.switchToInterpreter(AI);
|
BD.switchToInterpreter(AI);
|
||||||
|
|
||||||
std::cout << " Testing after loop extraction:\n";
|
std::cout << " Testing after loop extraction:\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user