mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Try to run cleanups even if nothing was modified in the preview passes
llvm-svn: 6897
This commit is contained in:
parent
bc15c235dd
commit
ca92cc4853
@ -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…
Reference in New Issue
Block a user