[llvm-commits] CVS: llvm/tools/bugpoint/CrashDebugger.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Jun 24 23:15:05 PDT 2003


Changes in directory llvm/tools/bugpoint:

CrashDebugger.cpp updated: 1.10 -> 1.11

---
Log message:

Try to run cleanups even if nothing was modified in the preview passes


---
Diffs of the changes:

Index: llvm/tools/bugpoint/CrashDebugger.cpp
diff -u llvm/tools/bugpoint/CrashDebugger.cpp:1.10 llvm/tools/bugpoint/CrashDebugger.cpp:1.11
--- llvm/tools/bugpoint/CrashDebugger.cpp:1.10	Sun Jun  1 23:54:29 2003
+++ llvm/tools/bugpoint/CrashDebugger.cpp	Tue Jun 24 23:13:52 2003
@@ -360,20 +360,18 @@
   } 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)





More information about the llvm-commits mailing list