Commit 4965c163 by Andrew Pinski Committed by Andrew Pinski

re PR middle-end/17967 (Expand is considered slower? (remove_useless_stmts is…

re PR middle-end/17967 (Expand is considered slower? (remove_useless_stmts is considered part of expand))

2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/17967
        Revert:
                * tree-cfg.c (remove_usless_stmts_cond):  Fold statement.
                (remove_useless_stmts_1):  Fold trees we know how to fold.

From-SVN: r89057
parent cff1f8d4
2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/17967
Revert:
* tree-cfg.c (remove_usless_stmts_cond): Fold statement.
(remove_useless_stmts_1): Fold trees we know how to fold.
2004-10-14 Joseph S. Myers <joseph@codesourcery.com>
* config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS),
......
......@@ -1204,7 +1204,6 @@ remove_useless_stmts_cond (tree *stmt_p, struct rus_data *data)
else_has_label = data->has_label;
data->has_label = save_has_label | then_has_label | else_has_label;
fold_stmt (stmt_p);
then_clause = COND_EXPR_THEN (*stmt_p);
else_clause = COND_EXPR_ELSE (*stmt_p);
cond = COND_EXPR_COND (*stmt_p);
......@@ -1552,13 +1551,11 @@ remove_useless_stmts_1 (tree *tp, struct rus_data *data)
break;
case RETURN_EXPR:
fold_stmt (tp);
data->last_goto = NULL;
data->may_branch = true;
break;
case CALL_EXPR:
fold_stmt (tp);
data->last_goto = NULL;
notice_special_calls (t);
update_call_expr_flags (t);
......@@ -1568,7 +1565,6 @@ remove_useless_stmts_1 (tree *tp, struct rus_data *data)
case MODIFY_EXPR:
data->last_goto = NULL;
fold_stmt (tp);
op = get_call_expr_in (t);
if (op)
{
......@@ -1604,10 +1600,6 @@ remove_useless_stmts_1 (tree *tp, struct rus_data *data)
}
}
break;
case SWITCH_EXPR:
fold_stmt (tp);
data->last_goto = NULL;
break;
default:
data->last_goto = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment