[llvm-commits] CVS: llvm/tools/gccld/gccld.cpp

John Criswell criswell at choi.cs.uiuc.edu
Thu Jun 26 16:41:18 PDT 2003


Changes in directory llvm/tools/gccld:

gccld.cpp updated: 1.33 -> 1.33.2.1

---
Log message:

Merged with mainline on Thursday, June 26, 2003.


---
Diffs of the changes:

Index: llvm/tools/gccld/gccld.cpp
diff -u llvm/tools/gccld/gccld.cpp:1.33 llvm/tools/gccld/gccld.cpp:1.33.2.1
--- llvm/tools/gccld/gccld.cpp:1.33	Thu May 29 10:13:15 2003
+++ llvm/tools/gccld/gccld.cpp	Thu Jun 26 16:36:00 2003
@@ -396,6 +396,19 @@
     Passes.add(createInternalizePass());
   }
 
+  // Remove unused arguments from functions...
+  //
+  Passes.add(createDeadArgEliminationPass());
+
+  // The FuncResolve pass may leave cruft around if functions were prototyped
+  // differently than they were defined.  Remove this cruft.
+  //
+  Passes.add(createInstructionCombiningPass());
+
+  // Delete basic blocks, which optimization passes may have killed...
+  //
+  Passes.add(createCFGSimplificationPass());
+
   // Now that we have optimized the program, discard unreachable functions...
   //
   Passes.add(createGlobalDCEPass());





More information about the llvm-commits mailing list