diff gen/optimizer.cpp @ 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 79b201533cf8
children a28953f1eb43
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)