This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] tree-ssa.c: Remove a local variable that is set but notused.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 12 Mar 2005 09:04:17 -0500 (EST)
- Subject: [patch] tree-ssa.c: Remove a local variable that is set but notused.
Hi,
Attached is a patch to remove a local variable that is set but not
used.
Bootstrapped on i686-pc-linux-gnu. Committed as obvious.
Kazu Hirata
2005-03-12 Kazu Hirata <kazu@cs.umass.edu>
* tree-ssa.c (kill_redundant_phi_nodes): Remove local variable
var.
Index: tree-ssa.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa.c,v
retrieving revision 2.81
diff -u -d -p -r2.81 tree-ssa.c
--- tree-ssa.c 5 Mar 2005 15:29:25 -0000 2.81
+++ tree-ssa.c 11 Mar 2005 18:51:53 -0000
@@ -1239,7 +1239,7 @@ kill_redundant_phi_nodes (void)
tree *eq_to;
unsigned i, old_num_ssa_names;
basic_block bb;
- tree phi, var, repl, stmt;
+ tree phi, repl, stmt;
/* The EQ_TO[VER] holds the value by that the ssa name VER should be
replaced. If EQ_TO[VER] is ssa name and it is decided to replace it by
@@ -1261,10 +1261,7 @@ kill_redundant_phi_nodes (void)
FOR_EACH_BB (bb)
{
for (phi = phi_nodes (bb); phi; phi = PHI_CHAIN (phi))
- {
- var = PHI_RESULT (phi);
- check_phi_redundancy (phi, eq_to);
- }
+ check_phi_redundancy (phi, eq_to);
}
/* Now propagate the values. */