mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-13 15:37:24 +00:00
Try to run cleanups even if nothing was modified in the preview passes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6897 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
06c818e717
commit
898e0e42e3
@ -360,20 +360,18 @@ bool BugDriver::debugCrash() {
|
||||
} while (Simplification);
|
||||
|
||||
// Try to clean up the testcase by running funcresolve and globaldce...
|
||||
if (AnyReduction) {
|
||||
std::cout << "\n*** Attempting to perform final cleanups: ";
|
||||
Module *M = performFinalCleanups();
|
||||
std::swap(Program, M);
|
||||
std::cout << "\n*** Attempting to perform final cleanups: ";
|
||||
Module *M = performFinalCleanups();
|
||||
std::swap(Program, M);
|
||||
|
||||
// Find out if the pass still crashes on the cleaned up program...
|
||||
if (runPasses(PassesToRun)) {
|
||||
// Yup, it does, keep the reduced version...
|
||||
delete M;
|
||||
AnyReduction = true;
|
||||
} else {
|
||||
delete Program; // Otherwise, restore the original module...
|
||||
Program = M;
|
||||
}
|
||||
// Find out if the pass still crashes on the cleaned up program...
|
||||
if (runPasses(PassesToRun)) {
|
||||
// Yup, it does, keep the reduced version...
|
||||
delete M;
|
||||
AnyReduction = true;
|
||||
} else {
|
||||
delete Program; // Otherwise, restore the original module...
|
||||
Program = M;
|
||||
}
|
||||
|
||||
if (AnyReduction)
|
||||
|
Loading…
x
Reference in New Issue
Block a user