Add instcombine after global optimizations.

llvm-svn: 51611
This commit is contained in:
Devang Patel 2008-05-27 20:42:44 +00:00
parent 4ec1b4e3f9
commit 8b16aeb879
1 changed files with 6 additions and 0 deletions

View File

@ -360,6 +360,12 @@ bool LTOCodeGenerator::generateAssemblyCode(std::ostream& out, std::string& errM
// 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