Revert "Revert "Fix overly conservative inlining prediction".",

The previous failures were caused by the issue in
callWithStackShell(), which is fixed now.

This reverts commit 4a6444c320.
This commit is contained in:
David Nadlinger
2013-02-09 10:39:43 +01:00
parent 637239a5c7
commit d49e1529ed

View File

@@ -1654,10 +1654,7 @@ bool mustDefineSymbol(Dsymbol* s)
if ( !fd->isStaticCtorDeclaration()
&& !fd->isStaticDtorDeclaration()
&& !fd->isUnitTestDeclaration()
// FIXME: Should be canInline(true, false, false), but this
// causes a misoptimization in druntime on x86, likely due to
// an LLVM bug.
&& fd->canInline(true))
&& fd->canInline(true, false, false))
{
return true;
}