updates for script optimization

This commit is contained in:
Vern Paxson 2022-03-11 14:35:45 -08:00 committed by Tim Wojtulewicz
parent ae75635c5a
commit 18cfee51c2
3 changed files with 115 additions and 28 deletions

View file

@ -161,7 +161,8 @@ StmtPtr ExprStmt::DoReduce(Reducer* c)
return TransformMe(make_intrusive<NullStmt>(), c);
if ( (t == EXPR_ASSIGN || t == EXPR_CALL || t == EXPR_INDEX_ASSIGN ||
t == EXPR_FIELD_LHS_ASSIGN || t == EXPR_APPEND_TO) &&
t == EXPR_FIELD_LHS_ASSIGN || t == EXPR_APPEND_TO || t == EXPR_ADD_TO ||
t == EXPR_REMOVE_FROM) &&
e->IsReduced(c) )
return ThisPtr();