diff options
Diffstat (limited to 'tools/gccld/GenerateCode.cpp')
-rw-r--r-- | tools/gccld/GenerateCode.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/gccld/GenerateCode.cpp b/tools/gccld/GenerateCode.cpp index d1a009b411..ef07287731 100644 --- a/tools/gccld/GenerateCode.cpp +++ b/tools/gccld/GenerateCode.cpp @@ -68,6 +68,9 @@ GenerateBytecode (Module *M, bool Strip, bool Internalize, std::ostream *Out) { Passes.add(createInternalizePass()); } + // Propagate constants at call sites into the functions they call. + Passes.add(createIPConstantPropagationPass()); + // Remove unused arguments from functions... Passes.add(createDeadArgEliminationPass()); |