From eaa35bb794fc45df83fef6eada35783739a4030f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 23 Oct 2003 18:25:57 +0000 Subject: Turn on the IPCP pass by default. It has passed all of the tests git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9435 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/gccld/GenerateCode.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/gccld/GenerateCode.cpp') 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()); -- cgit v1.2.3-18-g5258