[llvm-commits] CVS: llvm/tools/gccld/gccld.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Jun 26 00:31:06 PDT 2003
Changes in directory llvm/tools/gccld:
gccld.cpp updated: 1.36 -> 1.37
---
Log message:
Run the simplify CFG pass after instcombine which has the effect of deleting
ALL of the global ctor/dtor stuff if it is not used!
---
Diffs of the changes:
Index: llvm/tools/gccld/gccld.cpp
diff -u llvm/tools/gccld/gccld.cpp:1.36 llvm/tools/gccld/gccld.cpp:1.37
--- llvm/tools/gccld/gccld.cpp:1.36 Wed Jun 25 23:32:31 2003
+++ llvm/tools/gccld/gccld.cpp Thu Jun 26 00:29:50 2003
@@ -405,6 +405,10 @@
//
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