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

Chris Lattner lattner at cs.uiuc.edu
Sun Oct 10 21:47:31 PDT 2004



Changes in directory llvm/tools/gccld:

GenerateCode.cpp updated: 1.33 -> 1.34
---
Log message:

Don't miss global optimizations because we run before the inliner


---
Diffs of the changes:  (+1 -0)

Index: llvm/tools/gccld/GenerateCode.cpp
diff -u llvm/tools/gccld/GenerateCode.cpp:1.33 llvm/tools/gccld/GenerateCode.cpp:1.34
--- llvm/tools/gccld/GenerateCode.cpp:1.33	Wed Oct  6 23:11:45 2004
+++ llvm/tools/gccld/GenerateCode.cpp	Sun Oct 10 23:47:18 2004
@@ -184,6 +184,7 @@
       addPass(Passes, createFunctionInliningPass()); // Inline small functions
 
     addPass(Passes, createPruneEHPass());            // Remove dead EH info
+    addPass(Passes, createGlobalOptimizerPass());    // Optimize globals again.
     addPass(Passes, createGlobalDCEPass());          // Remove dead functions
 
     // If we didn't decide to inline a function, check to see if we can






More information about the llvm-commits mailing list