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:07:35 -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-pre.c (compute_avail): Remove local variable val.
(mark_operand_necessary): Remove local variable ver.
Index: tree-ssa-pre.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-pre.c,v
retrieving revision 2.69
diff -u -d -p -r2.69 tree-ssa-pre.c
--- tree-ssa-pre.c 11 Mar 2005 09:05:11 -0000 2.69
+++ tree-ssa-pre.c 11 Mar 2005 18:52:04 -0000
@@ -1819,9 +1819,8 @@ compute_avail (void)
{
if (default_def (param) != NULL)
{
- tree val;
tree def = default_def (param);
- val = vn_lookup_or_add (def, NULL);
+ vn_lookup_or_add (def, NULL);
bitmap_insert_into_set (TMP_GEN (ENTRY_BLOCK_PTR), def);
bitmap_value_insert_into_set (AVAIL_OUT (ENTRY_BLOCK_PTR), def);
}
@@ -2022,12 +2021,9 @@ static inline void
mark_operand_necessary (tree op, VEC(tree_on_heap) **worklist)
{
tree stmt;
- int ver;
gcc_assert (op);
- ver = SSA_NAME_VERSION (op);
-
stmt = SSA_NAME_DEF_STMT (op);
gcc_assert (stmt);