Do not inline into already big functions.

This commit is contained in:
chriseth
2018-12-13 12:12:54 +01:00
parent 642c69f935
commit 60a368244a
8 changed files with 290 additions and 174 deletions
+3
View File
@@ -48,6 +48,9 @@ size_t CodeSize::codeSize(Block const& _block)
void CodeSize::visit(Statement const& _statement)
{
if (_statement.type() == typeid(FunctionDefinition))
return;
++m_size;
ASTWalker::visit(_statement);
}