diff options
author | Chris Lattner <sabre@nondot.org> | 2004-04-12 05:38:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-04-12 05:38:15 +0000 |
commit | a2b279e89c95ae567cc3e5af830caf8555433be7 (patch) | |
tree | 140a1fcdc8bada4252c670480f299f66ffbc1446 /llvm/tools/gccld/GenerateCode.cpp | |
parent | 0a7526470b227fea015d57515b24338615412679 (diff) | |
download | bcm5719-llvm-a2b279e89c95ae567cc3e5af830caf8555433be7.tar.gz bcm5719-llvm-a2b279e89c95ae567cc3e5af830caf8555433be7.zip |
Add a couple more IPO's
llvm-svn: 12863
Diffstat (limited to 'llvm/tools/gccld/GenerateCode.cpp')
-rw-r--r-- | llvm/tools/gccld/GenerateCode.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/gccld/GenerateCode.cpp b/llvm/tools/gccld/GenerateCode.cpp index c985b8d5d0d..a844ee751a0 100644 --- a/llvm/tools/gccld/GenerateCode.cpp +++ b/llvm/tools/gccld/GenerateCode.cpp @@ -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()); |