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

Chris Lattner lattner at cs.uiuc.edu
Thu Apr 24 19:54:01 PDT 2003


Changes in directory llvm/tools/bugpoint:

ExtractFunction.cpp updated: 1.5 -> 1.6

---
Log message:

When cleaning up the final bytecode file, make sure to run DTE as well


---
Diffs of the changes:

Index: llvm/tools/bugpoint/ExtractFunction.cpp
diff -u llvm/tools/bugpoint/ExtractFunction.cpp:1.5 llvm/tools/bugpoint/ExtractFunction.cpp:1.6
--- llvm/tools/bugpoint/ExtractFunction.cpp:1.5	Thu Apr 24 17:53:11 2003
+++ llvm/tools/bugpoint/ExtractFunction.cpp	Thu Apr 24 19:52:30 2003
@@ -64,11 +64,12 @@
 /// before handing it to the user...
 ///
 Module *BugDriver::performFinalCleanups() const {
+  Module *M = CloneModule(Program);
   PassManager CleanupPasses;
   CleanupPasses.add(createFunctionResolvingPass());
   CleanupPasses.add(createGlobalDCEPass());
+  CleanupPasses.add(createDeadTypeEliminationPass());
   CleanupPasses.add(createVerifierPass());
-  Module *M = CloneModule(Program);
   CleanupPasses.run(*M);
   return M;
 }





More information about the llvm-commits mailing list