aboutsummaryrefslogtreecommitdiff
path: root/tools/gccas/gccas.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-25 21:35:02 +0000
committerChris Lattner <sabre@nondot.org>2004-02-25 21:35:02 +0000
commita93d19fff7e53d48bbdb74b85ca5dc23f00855a8 (patch)
treebf03d333ca6034dc2357a8dd8495fea677277e05 /tools/gccas/gccas.cpp
parentfdf6a3c8ccec4761ffb56f49fa9cdb23ea7985d7 (diff)
Add a new pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11838 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccas/gccas.cpp')
-rw-r--r--tools/gccas/gccas.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index 7b5018a519..e04b2b5646 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -68,6 +68,7 @@ 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, createIPConstantPropagationPass());// IP Constant Propagation
addPass(PM, createDeadArgEliminationPass()); // Dead argument elimination