aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/tree-ssa-forwprop.c5
2 files changed, 3 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ed325c3..e0af981 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/tree-ssa-forwprop.c b/gcc/tree-ssa-forwprop.c
index a47d69a..746812a 100644
--- a/gcc/tree-ssa-forwprop.c
+++ b/gcc/tree-ssa-forwprop.c
@@ -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);