aboutsummaryrefslogtreecommitdiff
path: root/tools/gccas/gccas.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-07 04:12:02 +0000
committerChris Lattner <sabre@nondot.org>2004-10-07 04:12:02 +0000
commit93a00e4ceb810639ec8dfb7985fad76c1ffba8c1 (patch)
treeda81b3a0d077b3805b07588f3828580cd1e0e906 /tools/gccas/gccas.cpp
parent8ecaccebf1c992c8e606c1349d0e0478e2e5dc8e (diff)
Rename pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16801 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccas/gccas.cpp')
-rw-r--r--tools/gccas/gccas.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index ab64bbf18f..fe9c9d4110 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -71,8 +71,8 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
addPass(PM, createRaiseAllocationsPass()); // call %malloc -> malloc inst
addPass(PM, createCFGSimplificationPass()); // Clean up disgusting code
addPass(PM, createPromoteMemoryToRegister()); // Kill useless allocas
- addPass(PM, createGlobalConstifierPass()); // Mark read-only globals const
- addPass(PM, createGlobalDCEPass()); // Remove unused globals
+ addPass(PM, createGlobalOptimizerPass()); // Optimize out global vars
+ addPass(PM, createGlobalDCEPass()); // Remove unused fns and globs
addPass(PM, createIPConstantPropagationPass());// IP Constant Propagation
addPass(PM, createDeadArgEliminationPass()); // Dead argument elimination
addPass(PM, createInstructionCombiningPass()); // Clean up after IPCP & DAE