mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Merge remote-tracking branch 'origin/topic/vern/ZAM-inlining'
* origin/topic/vern/ZAM-inlining: speed up ZAM compilation by capping function size when inlining
This commit is contained in:
commit
73273fc87b
15 changed files with 85 additions and 15 deletions
|
@ -2329,6 +2329,10 @@ ExprPtr CallExpr::Inline(Inliner* inl)
|
|||
{
|
||||
auto new_me = inl->CheckForInlining({NewRef{}, this});
|
||||
|
||||
if ( ! new_me )
|
||||
// All done with inlining.
|
||||
return ThisPtr();
|
||||
|
||||
if ( new_me.get() != this )
|
||||
return new_me;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue