diff options
author | Chris Lattner <sabre@nondot.org> | 2003-06-25 04:13:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-06-25 04:13:52 +0000 |
commit | 898e0e42e3c09e9f2098bf9a83720b5a33b52fc7 (patch) | |
tree | 70b4d2bbca00a50d47041b2289d7984f971fd60d /tools/bugpoint/CrashDebugger.cpp | |
parent | 06c818e71786ee206e53ca87d63e09747119f5f5 (diff) | |
download | llvm-898e0e42e3c09e9f2098bf9a83720b5a33b52fc7.tar.gz llvm-898e0e42e3c09e9f2098bf9a83720b5a33b52fc7.tar.bz2 llvm-898e0e42e3c09e9f2098bf9a83720b5a33b52fc7.tar.xz |
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
Diffstat (limited to 'tools/bugpoint/CrashDebugger.cpp')
-rw-r--r-- | tools/bugpoint/CrashDebugger.cpp | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/tools/bugpoint/CrashDebugger.cpp b/tools/bugpoint/CrashDebugger.cpp index a0da67ce98..40854aa380 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) |