mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
removed redundant Traverse invocation
This commit is contained in:
parent
94ac72cd84
commit
93e9801f89
1 changed files with 0 additions and 2 deletions
|
@ -92,7 +92,6 @@ void optimize_func(ScriptFunc* f, std::shared_ptr<ProfileFunc> pf,
|
|||
if ( analysis_options.optimize_AST )
|
||||
{
|
||||
pf = std::make_shared<ProfileFunc>(f, body, true);
|
||||
body->Traverse(pf.get());
|
||||
|
||||
RD_Decorate reduced_rds(pf);
|
||||
reduced_rds.TraverseFunction(f, scope, body);
|
||||
|
@ -122,7 +121,6 @@ void optimize_func(ScriptFunc* f, std::shared_ptr<ProfileFunc> pf,
|
|||
|
||||
// Profile the new body.
|
||||
pf = std::make_shared<ProfileFunc>(f, body, true);
|
||||
body->Traverse(pf.get());
|
||||
|
||||
pf = std::make_shared<ProfileFunc>(f, body, true);
|
||||
// Compute its reaching definitions.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue