mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
Add a couple more IPO's
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12863 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -105,6 +105,9 @@ int llvm::GenerateBytecode(Module *M, bool Strip, bool Internalize,
|
|||||||
if (!DisableInline)
|
if (!DisableInline)
|
||||||
addPass(Passes, createFunctionInliningPass()); // Inline small functions
|
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
|
// 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.
|
// transform it to pass arguments by value instead of by reference.
|
||||||
addPass(Passes, createArgumentPromotionPass());
|
addPass(Passes, createArgumentPromotionPass());
|
||||||
|
Reference in New Issue
Block a user