diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-11 04:47:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-11 04:47:18 +0000 |
commit | e3ef9b5fe241df8eb835f1923b17314ef5e7c61f (patch) | |
tree | e164fdb40d7849b369163fb4434117851e96c115 /tools/gccld | |
parent | 4a2b23e189cacb3c7afbfe3c38690768a01390ef (diff) | |
download | external_llvm-e3ef9b5fe241df8eb835f1923b17314ef5e7c61f.zip external_llvm-e3ef9b5fe241df8eb835f1923b17314ef5e7c61f.tar.gz external_llvm-e3ef9b5fe241df8eb835f1923b17314ef5e7c61f.tar.bz2 |
Don't miss global optimizations because we run before the inliner
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16913 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccld')
-rw-r--r-- | tools/gccld/GenerateCode.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gccld/GenerateCode.cpp b/tools/gccld/GenerateCode.cpp index a803b43..1144b92 100644 --- a/tools/gccld/GenerateCode.cpp +++ b/tools/gccld/GenerateCode.cpp @@ -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 |