This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] loop-iv.c: Remove a local variable that is set but notused.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 09 Mar 2005 02:13:00 -0500 (EST)
- Subject: [patch] loop-iv.c: Remove a local variable that is set but notused.
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>
* loop-iv.c (get_biv_step_1): Remove lhs.
Index: loop-iv.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/loop-iv.c,v
retrieving revision 2.28
diff -u -d -p -r2.28 loop-iv.c
--- loop-iv.c 8 Mar 2005 12:48:54 -0000 2.28
+++ loop-iv.c 8 Mar 2005 23:24:29 -0000
@@ -660,7 +660,7 @@ get_biv_step_1 (rtx insn, rtx reg,
enum rtx_code *extend, enum machine_mode outer_mode,
rtx *outer_step)
{
- rtx set, lhs, rhs, op0 = NULL_RTX, op1 = NULL_RTX;
+ rtx set, rhs, op0 = NULL_RTX, op1 = NULL_RTX;
rtx next, nextr, def_insn, tmp;
enum rtx_code code;
@@ -670,7 +670,6 @@ get_biv_step_1 (rtx insn, rtx reg,
rhs = XEXP (rhs, 0);
else
rhs = SET_SRC (set);
- lhs = SET_DEST (set);
code = GET_CODE (rhs);
switch (code)