This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] tree-ssa-phiopt.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: Sat, 12 Mar 2005 09:06:11 -0500 (EST)
- Subject: [patch] tree-ssa-phiopt.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.
Bootstrapped on i686-pc-linux-gnu. Committed as obvious.
Kazu Hirata
2005-03-12 Kazu Hirata <kazu@cs.umass.edu>
* tree-ssa-phiopt.c (tree_ssa_phiopt): Remove local variable
removed_phis.
Index: tree-ssa-phiopt.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-phiopt.c,v
retrieving revision 2.26
diff -u -d -p -r2.26 tree-ssa-phiopt.c
--- tree-ssa-phiopt.c 11 Mar 2005 09:05:11 -0000 2.26
+++ tree-ssa-phiopt.c 11 Mar 2005 19:08:21 -0000
@@ -110,7 +110,6 @@ static void
tree_ssa_phiopt (void)
{
basic_block bb;
- bool removed_phis = false;
/* Search every basic block for COND_EXPR we may be able to optimize
in reverse order so we can find more. */
@@ -191,9 +190,6 @@ tree_ssa_phiopt (void)
|| value_replacement (bb, bb1, bb2, e1, e2, phi, arg0, arg1)
|| abs_replacement (bb, bb1, bb2, e1, e2, phi, arg0, arg1))
{
- /* We have done the replacement so we need to rebuild the
- cfg when this pass is complete. */
- removed_phis = true;
}
}
}