mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-12 22:17:47 +00:00
Add a couple more IPO's
llvm-svn: 12863
This commit is contained in:
parent
4b1e880424
commit
0bb60b108d
@ -105,6 +105,9 @@ int llvm::GenerateBytecode(Module *M, bool Strip, bool Internalize,
|
||||
if (!DisableInline)
|
||||
addPass(Passes, createFunctionInliningPass()); // Inline small functions
|
||||
|
||||
addPass(Passes, createPruneEHPass()); // Remove dead EH info
|
||||
addPass(Passes, createGlobalDCEPass()); // Remove dead functions
|
||||
|
||||
// If we didn't decide to inline a function, check to see if we can
|
||||
// transform it to pass arguments by value instead of by reference.
|
||||
addPass(Passes, createArgumentPromotionPass());
|
||||
|
Loading…
Reference in New Issue
Block a user