tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Remove unreachable code.
authorZdenek Dvorak <dvorakz@suse.cz>
Tue, 31 Jan 2006 02:55:28 +0000 (03:55 +0100)
committerZdenek Dvorak <rakdver@gcc.gnu.org>
Tue, 31 Jan 2006 02:55:28 +0000 (02:55 +0000)
* tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Remove
unreachable code.

From-SVN: r110426

gcc/ChangeLog
gcc/tree-ssa-dce.c

index 8ef733d0824bf58a243b71b0c5f7a91133cefe42..c644bde9a687402bc2c16c62b7f68a71981875d9 100644 (file)
@@ -1,3 +1,8 @@
+2006-01-30  Zdenek Dvorak <dvorakz@suse.cz>
+
+       * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Remove
+       unreachable code.
+
 2006-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
 
        PR target/26018
index c8b98d357c8ce9c82d57f6f0529ccad6844cd1b0..1b25f271ab94e3e99571677715b272c387b5647f 100644 (file)
@@ -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);