# HG changeset patch # User Frits van Bommel # Date 1243462041 -7200 # Node ID 42bd767ec5a4014fa5a65a43c42638dfea83a48c # Parent 91ddebba88e9db49b792f00912a36938db7f09a6 * 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. diff -r 91ddebba88e9 -r 42bd767ec5a4 gen/optimizer.cpp --- 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) diff -r 91ddebba88e9 -r 42bd767ec5a4 gen/tocall.cpp --- 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);