mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58: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
|
@ -740,8 +740,8 @@ bool StmtList::ReduceStmt(unsigned int& s_i, std::vector<StmtPtr>& f_stmts, Redu
|
|||
}
|
||||
}
|
||||
|
||||
if ( c->IsCSE(a, var, rhs.get()) ) {
|
||||
// printf("discarding %s as unnecessary\n", obj_desc(a));
|
||||
if ( c->IsTemporary(var->Id()) && ! c->IsParamTemp(var->Id()) && c->IsCSE(a, var, rhs.get()) ) {
|
||||
// printf("discarding %s as unnecessary\n", var->Id()->Name());
|
||||
// Skip this now unnecessary statement.
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue