This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] tree-outof-ssa.c: Remove a local variable that is set butnot used.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 09 Mar 2005 06:34:23 -0500 (EST)
- Subject: [patch] tree-outof-ssa.c: Remove a local variable that is set butnot used.
Hi,
Attached is a patch to remove a local variable that is set but not
used.
Note that num_var_partitions does not modify memory.
Bootstrapped on i686-pc-linux-gnu. Committed as obvious.
Kazu Hirata
2005-03-09 Kazu Hirata <kazu@cs.umass.edu>
* tree-outof-ssa.c (num_nodes): Remove num_nodes.
Index: tree-outof-ssa.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-outof-ssa.c,v
retrieving revision 2.48
diff -u -d -p -r2.48 tree-outof-ssa.c
--- tree-outof-ssa.c 5 Mar 2005 15:29:24 -0000 2.48
+++ tree-outof-ssa.c 9 Mar 2005 07:29:41 -0000
@@ -488,7 +488,6 @@ elim_create (elim_graph g, int T)
static void
eliminate_phi (edge e, elim_graph g)
{
- int num_nodes = 0;
int x;
basic_block B = e->dest;
@@ -499,7 +498,6 @@ eliminate_phi (edge e, elim_graph g)
if (e->flags & EDGE_ABNORMAL)
return;
- num_nodes = num_var_partitions (g->map);
g->e = e;
eliminate_build (g, B);