From ca92cc4853771307057390080d487547e5478e3d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 25 Jun 2003 04:13:52 +0000 Subject: [PATCH] Try to run cleanups even if nothing was modified in the preview passes llvm-svn: 6897 --- tools/bugpoint/CrashDebugger.cpp | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/tools/bugpoint/CrashDebugger.cpp b/tools/bugpoint/CrashDebugger.cpp index a0da67ce985..40854aa380d 100644 --- a/tools/bugpoint/CrashDebugger.cpp +++ b/tools/bugpoint/CrashDebugger.cpp @@ -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)