forked from OSchip/llvm-project
Add instcombine after global optimizations.
llvm-svn: 51611
This commit is contained in:
parent
4ec1b4e3f9
commit
8b16aeb879
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue