mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user