mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +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 )
|
if ( analysis_options.optimize_AST )
|
||||||
{
|
{
|
||||||
pf = std::make_shared<ProfileFunc>(f, body, true);
|
pf = std::make_shared<ProfileFunc>(f, body, true);
|
||||||
body->Traverse(pf.get());
|
|
||||||
|
|
||||||
RD_Decorate reduced_rds(pf);
|
RD_Decorate reduced_rds(pf);
|
||||||
reduced_rds.TraverseFunction(f, scope, body);
|
reduced_rds.TraverseFunction(f, scope, body);
|
||||||
|
@ -122,7 +121,6 @@ void optimize_func(ScriptFunc* f, std::shared_ptr<ProfileFunc> pf,
|
||||||
|
|
||||||
// Profile the new body.
|
// Profile the new body.
|
||||||
pf = std::make_shared<ProfileFunc>(f, body, true);
|
pf = std::make_shared<ProfileFunc>(f, body, true);
|
||||||
body->Traverse(pf.get());
|
|
||||||
|
|
||||||
pf = std::make_shared<ProfileFunc>(f, body, true);
|
pf = std::make_shared<ProfileFunc>(f, body, true);
|
||||||
// Compute its reaching definitions.
|
// Compute its reaching definitions.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue