mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
greater ZAM optimization of inlined function calls
This commit is contained in:
parent
e3b75ac391
commit
b489cfc508
13 changed files with 130 additions and 95 deletions
|
@ -13,6 +13,7 @@
|
|||
namespace zeek::detail {
|
||||
|
||||
class FuncInfo;
|
||||
class ProfileFunc;
|
||||
|
||||
class Inliner {
|
||||
public:
|
||||
|
@ -43,8 +44,9 @@ protected:
|
|||
// the full set of scripts.
|
||||
std::vector<FuncInfo>& funcs;
|
||||
|
||||
// Functions that we've determined to be suitable for inlining.
|
||||
std::unordered_set<const Func*> inline_ables;
|
||||
// Functions that we've determined to be suitable for inlining, and
|
||||
// their associated profiles.
|
||||
std::unordered_map<const Func*, const ProfileFunc*> inline_ables;
|
||||
|
||||
// Functions that we inlined.
|
||||
std::unordered_set<const Func*> did_inline;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue