From: Chris Lattner Date: Wed, 25 Feb 2004 21:35:02 +0000 (+0000) Subject: Add a new pass X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a93d19fff7e53d48bbdb74b85ca5dc23f00855a8;p=oota-llvm.git Add a new pass git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11838 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp index 7b5018a5198..e04b2b5646a 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