aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-03-13 21:38:35 +0000
committerChris Lattner <sabre@nondot.org>2004-03-13 21:38:35 +0000
commit2c7b430bc0831227f8c77478c1bda597f8f9fe29 (patch)
tree8d8b88ba559e17572479b3a47d0116a4a0b92d11
parent6a6d2a2d6f1e4d710b5b821e6defddf2cd91a48f (diff)
Turn on argument promotion in gccas. This can give us substantially better
code in cases where the file has lots of static functions or anon namespaces. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12361 91177308-0d34-0410-b5e6-96231b3b80d8
-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 e04b2b5646..dd2b307d3b 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -79,6 +79,7 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
if (!DisableInline)
addPass(PM, createFunctionInliningPass()); // Inline small functions
+ addPass(PM, createArgumentPromotionPass()); // Scalarize uninlined fn args
addPass(PM, createRaisePointerReferencesPass());// Recover type information
addPass(PM, createTailDuplicationPass()); // Simplify cfg by copying code