aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gccld
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-23 18:25:57 +0000
committerChris Lattner <sabre@nondot.org>2003-10-23 18:25:57 +0000
commiteaa35bb794fc45df83fef6eada35783739a4030f (patch)
treeeff79d82aeb3a5d1e545fdbbf2c75331ddd1ece6 /tools/gccld
parentaf19f2e52c17a9bd91130d5dd0451fef477575e0 (diff)
downloadexternal_llvm-eaa35bb794fc45df83fef6eada35783739a4030f.zip
external_llvm-eaa35bb794fc45df83fef6eada35783739a4030f.tar.gz
external_llvm-eaa35bb794fc45df83fef6eada35783739a4030f.tar.bz2
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
Diffstat (limited to 'tools/gccld')
-rw-r--r--tools/gccld/GenerateCode.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/gccld/GenerateCode.cpp b/tools/gccld/GenerateCode.cpp
index d1a009b..ef07287 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());