diff options
author | Zdenek Dvorak <dvorakz@suse.cz> | 2006-01-31 03:55:28 +0100 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2006-01-31 02:55:28 +0000 |
commit | b729952bdf80f4595c6b00f941cac056429eb075 (patch) | |
tree | d8ccae3b763499f1e24c6a99e1d85a5732597ff8 /gcc/tree-ssa-dce.c | |
parent | 3cd045d10e27fcdc283a9f102e2dcded02c27b8b (diff) | |
download | gcc-b729952bdf80f4595c6b00f941cac056429eb075.zip gcc-b729952bdf80f4595c6b00f941cac056429eb075.tar.gz gcc-b729952bdf80f4595c6b00f941cac056429eb075.tar.bz2 |
tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Remove unreachable code.
* tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Remove
unreachable code.
From-SVN: r110426
Diffstat (limited to 'gcc/tree-ssa-dce.c')
-rw-r--r-- | gcc/tree-ssa-dce.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/gcc/tree-ssa-dce.c b/gcc/tree-ssa-dce.c index c8b98d3..1b25f27 100644 --- a/gcc/tree-ssa-dce.c +++ b/gcc/tree-ssa-dce.c @@ -285,8 +285,7 @@ static void mark_stmt_if_obviously_necessary (tree stmt, bool aggressive) { stmt_ann_t ann; - tree op, def; - ssa_op_iter iter; + tree op; /* With non-call exceptions, we have to assume that all statements could throw. If a statement may throw, it is inherently necessary. */ @@ -372,14 +371,6 @@ mark_stmt_if_obviously_necessary (tree stmt, bool aggressive) return; } - FOR_EACH_SSA_TREE_OPERAND (def, stmt, iter, SSA_OP_DEF) - { - if (is_global_var (SSA_NAME_VAR (def))) - { - mark_stmt_necessary (stmt, true); - return; - } - } if (is_hidden_global_store (stmt)) { mark_stmt_necessary (stmt, true); |