diff options
author | Chris Lattner <sabre@nondot.org> | 2004-12-10 08:03:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-12-10 08:03:43 +0000 |
commit | b4a400af2e276807afd22bea4c70408d80003fe1 (patch) | |
tree | 3b5afaaec301d8ed417b9f2094549f2069a368f5 /tools/gccld/GenerateCode.cpp | |
parent | 59acc7d4efd4580efd71e6a89393bf58f66d19dd (diff) |
Turn on ipsccp by default instead of simple IPCP
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18753 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccld/GenerateCode.cpp')
-rw-r--r-- | tools/gccld/GenerateCode.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gccld/GenerateCode.cpp b/tools/gccld/GenerateCode.cpp index 84eba1b505..ee9e42c49d 100644 --- a/tools/gccld/GenerateCode.cpp +++ b/tools/gccld/GenerateCode.cpp @@ -170,7 +170,8 @@ int llvm::GenerateBytecode(Module *M, int StripLevel, bool Internalize, addPass(Passes, createConstantMergePass()); // Propagate constants at call sites into the functions they call. - addPass(Passes, createIPConstantPropagationPass()); + addPass(Passes, createIPSCCPPass()); + addPass(Passes, createCFGSimplificationPass()); // Remove unused arguments from functions... addPass(Passes, createDeadArgEliminationPass()); |