changeset 1423:42bd767ec5a4

* Add -functionattrs to default pass list so -dgc2stack is more effective when callees aren't inlined. This should also improve various standard LLVM optimizations. * Comment out some verbose logging.
author Frits van Bommel <fvbommel wxs.nl>
date Thu, 28 May 2009 00:07:21 +0200
parents 91ddebba88e9
children ad999630aa35 638d16625da2
files gen/optimizer.cpp gen/tocall.cpp
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gen/optimizer.cpp	Wed May 27 12:42:28 2009 -0600
+++ b/gen/optimizer.cpp	Thu May 28 00:07:21 2009 +0200
@@ -119,6 +119,7 @@
         addPass(pm, createInstructionCombiningPass());
         addPass(pm, createCFGSimplificationPass());
         addPass(pm, createPruneEHPass());
+        addPass(pm, createFunctionAttrsPass());
 
 #ifdef USE_METADATA
         if (!disableLangSpecificPasses && !disableGCToStack)
--- a/gen/tocall.cpp	Wed May 27 12:42:28 2009 -0600
+++ b/gen/tocall.cpp	Thu May 28 00:07:21 2009 +0200
@@ -416,7 +416,7 @@
             }
             Logger::undent();
             Logger::cout() << "Function type: " << tf->toChars() << '\n';
-            Logger::cout() << "LLVM functype: " << *callable->getType() << '\n';
+            //Logger::cout() << "LLVM functype: " << *callable->getType() << '\n';
         }
 
         size_t n = Argument::dim(tf->parameters);