diff options
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()); |