mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-11 13:44:28 +00:00
Add instcombine after global optimizations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51611 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
201694b0c6
commit
3b75d20c1a
@ -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
Block a user