This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
patch: DSE remove unused variable
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: dnovillo at redhat dot com
- Date: Tue, 25 Apr 2006 15:46:30 -0400
- Subject: patch: DSE remove unused variable
Saw this while working on handling partial kills in DSE.
Bootstrapped on ppc-linux. Regtests almost done.
OK?
* tree-ssa-dse.c (dse_optimize_stmt): Remove unused variable USE.
Index: tree-ssa-dse.c
===================================================================
--- tree-ssa-dse.c (revision 112618)
+++ tree-ssa-dse.c (working copy)
@@ -249,7 +249,7 @@ dse_optimize_stmt (struct dom_walk_data
{
use_operand_p first_use_p = NULL_USE_OPERAND_P;
use_operand_p use_p = NULL;
- tree use, use_stmt, temp;
+ tree use_stmt, temp;
tree defvar = NULL_TREE, usevar = NULL_TREE;
bool fail = false;
use_operand_p var2;
@@ -279,7 +279,6 @@ dse_optimize_stmt (struct dom_walk_data
single_imm_use (defvar, &use_p, &temp);
gcc_assert (use_p != NULL_USE_OPERAND_P);
first_use_p = use_p;
- use = USE_FROM_PTR (use_p);
/* If the immediate use of DEF_VAR is not the same as the
previously find immediate uses, then we will not be able
@@ -320,8 +319,7 @@ dse_optimize_stmt (struct dom_walk_data
/* Skip past this PHI and loop again in case we had a PHI
chain. */
- if (single_imm_use (PHI_RESULT (use_stmt), &use_p, &use_stmt))
- use = USE_FROM_PTR (use_p);
+ single_imm_use (PHI_RESULT (use_stmt), &use_p, &use_stmt);
}
/* If we have precisely one immediate use at this point, then we may