mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
hook for skipping chains + optimize common case of all-assignments-managed
This commit is contained in:
parent
9d886f61cc
commit
c0045c4643
3 changed files with 28 additions and 4 deletions
|
@ -904,6 +904,10 @@ bool StmtList::SimplifyChain(unsigned int start, unsigned int end, std::vector<S
|
|||
OpChain add_chains;
|
||||
std::set<const Stmt*> chain_stmts;
|
||||
|
||||
static bool skip_chains = getenv("ZAM_SKIP_CHAINS");
|
||||
if ( skip_chains )
|
||||
return false;
|
||||
|
||||
for ( auto i = start; i <= end; ++i ) {
|
||||
auto& s = stmts[i];
|
||||
chain_stmts.insert(s.get());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue