mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-16 20:03:14 +01:00
* 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.
This commit is contained in:
@@ -119,6 +119,7 @@ static void addPassesForOptLevel(PassManager& pm) {
|
||||
addPass(pm, createInstructionCombiningPass());
|
||||
addPass(pm, createCFGSimplificationPass());
|
||||
addPass(pm, createPruneEHPass());
|
||||
addPass(pm, createFunctionAttrsPass());
|
||||
|
||||
#ifdef USE_METADATA
|
||||
if (!disableLangSpecificPasses && !disableGCToStack)
|
||||
|
||||
@@ -416,7 +416,7 @@ DValue* DtoCallFunction(Loc& loc, Type* resulttype, DValue* fnval, Expressions*
|
||||
}
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user