tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove redundant code.
authorKazu Hirata <kazu@cs.umass.edu>
Wed, 11 May 2005 16:06:36 +0000 (16:06 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Wed, 11 May 2005 16:06:36 +0000 (16:06 +0000)
* tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove
redundant code.

From-SVN: r99583

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

index ed325c3..e0af981 100644 (file)
@@ -2,6 +2,9 @@
 
        * fold-const.c, libgcov.c: Fix comment typos.
 
+       * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove
+       redundant code.
+
 2005-05-11  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
index a47d69a..746812a 100644 (file)
@@ -189,8 +189,6 @@ forward_propagate_into_cond_1 (tree cond, tree *test_var_p)
 
       if (has_single_use (test_var))
        {
-         tree op0 = TREE_OPERAND (def_rhs, 0);
-         tree op1 = TREE_OPERAND (def_rhs, 1);
          enum tree_code new_code;
          tree t;
 
@@ -246,9 +244,6 @@ forward_propagate_into_cond_1 (tree cond, tree *test_var_p)
          if (has_single_use (test_var))
            {
              /* TEST_VAR was set from a relational operator.  */
-             tree op0 = TREE_OPERAND (def_rhs, 0);
-             tree op1 = TREE_OPERAND (def_rhs, 1);
-
              new_cond = build (TREE_CODE (def_rhs),
                                boolean_type_node, op0, op1);