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-loop-im.c: Remove a local variable that is setbut not 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-09  Kazu Hirata  <kazu@cs.umass.edu>

	* tree-ssa-loop-im.c (lhs): Remove.

Index: tree-ssa-loop-im.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-loop-im.c,v
retrieving revision 2.28
diff -u -d -p -r2.28 tree-ssa-loop-im.c
--- tree-ssa-loop-im.c	19 Feb 2005 09:25:59 -0000	2.28
+++ tree-ssa-loop-im.c	9 Mar 2005 07:29:48 -0000
@@ -398,14 +398,13 @@ add_dependency (tree def, struct lim_aux
 static unsigned
 stmt_cost (tree stmt)
 {
-  tree lhs, rhs;
+  tree rhs;
   unsigned cost = 1;
 
   /* Always try to create possibilities for unswitching.  */
   if (TREE_CODE (stmt) == COND_EXPR)
     return LIM_EXPENSIVE;
 
-  lhs = TREE_OPERAND (stmt, 0);
   rhs = TREE_OPERAND (stmt, 1);
 
   /* Hoisting memory references out should almost surely be a win.  */


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