improved AST optimizer's analysis of variable usage in inlined functions

This commit is contained in:
Vern Paxson 2023-12-04 16:50:59 -08:00
parent 087eb1ca4e
commit d0eb40ac92
2 changed files with 43 additions and 4 deletions

View file

@ -93,9 +93,10 @@ private:
// Stack of confluence blocks corresponding to activate catch-return
// statements. We used to stop identifier definitions at these
// boundaries, but given there's no confluence (i.e., the body of the
// catch-return *will* execute), we can do broader optimization if we
// don't treat them as their own (new) confluence blocks.
// boundaries, but given there's limited confluence (i.e., the body of
// the catch-return *will* execute, up through its first return), we
// can do broader optimization if we don't treat them as their own
// (new) confluence blocks.
std::vector<zeek_uint_t> cr_active;
// The following is parallel to confluence_blocks except