speed up ZAM compilation by capping function size when inlining

This commit is contained in:
Vern Paxson 2022-05-14 14:52:31 -07:00
parent 0c2f04548a
commit 7d00ce0082
13 changed files with 79 additions and 14 deletions

View file

@ -59,6 +59,8 @@ const char* stmt_name(StmtTag t)
return stmt_names[int(t)];
}
int Stmt::num_stmts = 0;
Stmt::Stmt(StmtTag arg_tag)
{
tag = arg_tag;
@ -69,6 +71,8 @@ Stmt::Stmt(StmtTag arg_tag)
opt_info = new StmtOptInfo();
SetLocationInfo(&start_location, &end_location);
++num_stmts;
}
Stmt::~Stmt()