Turn on argument promotion in gccas. This can give us substantially better
authorChris Lattner <sabre@nondot.org>
Sat, 13 Mar 2004 21:38:35 +0000 (21:38 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 13 Mar 2004 21:38:35 +0000 (21:38 +0000)
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

tools/gccas/gccas.cpp

index e04b2b5646a42fcdce08b4bbc4a086f090dd8d73..dd2b307d3b8ffc40490e98f15afe89d9fcbf521d 100644 (file)
@@ -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