more extensive ZAM inlining & compilation of lambdas

This commit is contained in:
Vern Paxson 2023-07-13 12:03:34 -07:00
parent b9949560c6
commit 1ff490b41c
10 changed files with 156 additions and 42 deletions

View file

@ -2717,6 +2717,7 @@ ExprPtr InlineExpr::Reduce(Reducer* c, StmtPtr& red_stmt)
red_stmt = nullptr;
auto args_list = args->Exprs();
auto ret_val = c->PushInlineBlock(type);
loop_over_list(args_list, i)
{
@ -2730,7 +2731,6 @@ ExprPtr InlineExpr::Reduce(Reducer* c, StmtPtr& red_stmt)
red_stmt = MergeStmts(red_stmt, arg_red_stmt, assign_stmt);
}
auto ret_val = c->PushInlineBlock(type);
body = body->Reduce(c);
c->PopInlineBlock();