This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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);
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]