forked from OSchip/llvm-project
Don't miss global optimizations because we run before the inliner
llvm-svn: 16913
This commit is contained in:
parent
6faf3949f6
commit
155cfd237b
|
@ -184,6 +184,7 @@ int llvm::GenerateBytecode(Module *M, bool Strip, bool Internalize,
|
|||
addPass(Passes, createFunctionInliningPass()); // Inline small functions
|
||||
|
||||
addPass(Passes, createPruneEHPass()); // Remove dead EH info
|
||||
addPass(Passes, createGlobalOptimizerPass()); // Optimize globals again.
|
||||
addPass(Passes, createGlobalDCEPass()); // Remove dead functions
|
||||
|
||||
// If we didn't decide to inline a function, check to see if we can
|
||||
|
|
Loading…
Reference in New Issue