Skip to content
Snippets Groups Projects
Commit 155cfd23 authored by Chris Lattner's avatar Chris Lattner
Browse files

Don't miss global optimizations because we run before the inliner

llvm-svn: 16913
parent 6faf3949
No related branches found
No related tags found
No related merge requests found
...@@ -184,6 +184,7 @@ int llvm::GenerateBytecode(Module *M, bool Strip, bool Internalize, ...@@ -184,6 +184,7 @@ int llvm::GenerateBytecode(Module *M, bool Strip, bool Internalize,
addPass(Passes, createFunctionInliningPass()); // Inline small functions addPass(Passes, createFunctionInliningPass()); // Inline small functions
addPass(Passes, createPruneEHPass()); // Remove dead EH info addPass(Passes, createPruneEHPass()); // Remove dead EH info
addPass(Passes, createGlobalOptimizerPass()); // Optimize globals again.
addPass(Passes, createGlobalDCEPass()); // Remove dead functions 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment