[llvm-commits] [llvm] r51611 - /llvm/trunk/tools/lto2/LTOCodeGenerator.cpp

Devang Patel dpatel at apple.com
Tue May 27 13:42:45 PDT 2008


Author: dpatel
Date: Tue May 27 15:42:44 2008
New Revision: 51611

URL: http://llvm.org/viewvc/llvm-project?rev=51611&view=rev
Log:
Add instcombine after global optimizations.

Modified:
    llvm/trunk/tools/lto2/LTOCodeGenerator.cpp

Modified: llvm/trunk/tools/lto2/LTOCodeGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto2/LTOCodeGenerator.cpp?rev=51611&r1=51610&r2=51611&view=diff

==============================================================================
--- llvm/trunk/tools/lto2/LTOCodeGenerator.cpp (original)
+++ llvm/trunk/tools/lto2/LTOCodeGenerator.cpp Tue May 27 15:42:44 2008
@@ -360,6 +360,12 @@
     // Remove unused arguments from functions...
     passes.add(createDeadArgEliminationPass());
 
+    // Reduce the code after globalopt and ipsccp.  Both can open up significant
+    // simplification opportunities, and both can propagate functions through
+    // function pointers.  When this happens, we often have to resolve varargs
+    // calls, etc, so let instcombine do this.
+    passes.add(createInstructionCombiningPass());
+
     passes.add(createFunctionInliningPass()); // Inline small functions
 
     passes.add(createPruneEHPass());            // Remove dead EH info





More information about the llvm-commits mailing list