Commit da29e070 by Eric Botcazou Committed by Eric Botcazou

* combine.c (try_combine): Remove useless local variable.

From-SVN: r171901
parent 4979c28b
2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
* combine.c (try_combine): Remove useless local variable.
2011-04-03 Richard Guenther <rguenther@suse.de> 2011-04-03 Richard Guenther <rguenther@suse.de>
Ira Rosen <ira.rosen@linaro.org> Ira Rosen <ira.rosen@linaro.org>
......
...@@ -3974,7 +3974,6 @@ try_combine (rtx i3, rtx i2, rtx i1, rtx i0, int *new_direct_jump_p) ...@@ -3974,7 +3974,6 @@ try_combine (rtx i3, rtx i2, rtx i1, rtx i0, int *new_direct_jump_p)
rtx i3links, i2links, i1links = 0, i0links = 0; rtx i3links, i2links, i1links = 0, i0links = 0;
rtx midnotes = 0; rtx midnotes = 0;
int from_luid; int from_luid;
unsigned int regno;
/* Compute which registers we expect to eliminate. newi2pat may be setting /* Compute which registers we expect to eliminate. newi2pat may be setting
either i3dest or i2dest, so we must check it. Also, i1dest may be the either i3dest or i2dest, so we must check it. Also, i1dest may be the
same as i3dest, in which case newi2pat may be setting i1dest. */ same as i3dest, in which case newi2pat may be setting i1dest. */
...@@ -4232,8 +4231,7 @@ try_combine (rtx i3, rtx i2, rtx i1, rtx i0, int *new_direct_jump_p) ...@@ -4232,8 +4231,7 @@ try_combine (rtx i3, rtx i2, rtx i1, rtx i0, int *new_direct_jump_p)
if (REG_P (i2dest)) if (REG_P (i2dest))
{ {
rtx link; rtx link, i2_insn = 0, i2_val = 0, set;
rtx i2_insn = 0, i2_val = 0, set;
/* The insn that used to set this register doesn't exist, and /* The insn that used to set this register doesn't exist, and
this life of the register may not exist either. See if one of this life of the register may not exist either. See if one of
...@@ -4242,7 +4240,6 @@ try_combine (rtx i3, rtx i2, rtx i1, rtx i0, int *new_direct_jump_p) ...@@ -4242,7 +4240,6 @@ try_combine (rtx i3, rtx i2, rtx i1, rtx i0, int *new_direct_jump_p)
this and I2 set the register to a value that depended on its old this and I2 set the register to a value that depended on its old
contents, we will get confused. If this insn is used, thing contents, we will get confused. If this insn is used, thing
will be set correctly in combine_instructions. */ will be set correctly in combine_instructions. */
for (link = LOG_LINKS (i3); link; link = XEXP (link, 1)) for (link = LOG_LINKS (i3); link; link = XEXP (link, 1))
if ((set = single_set (XEXP (link, 0))) != 0 if ((set = single_set (XEXP (link, 0))) != 0
&& rtx_equal_p (i2dest, SET_DEST (set))) && rtx_equal_p (i2dest, SET_DEST (set)))
...@@ -4255,16 +4252,12 @@ try_combine (rtx i3, rtx i2, rtx i1, rtx i0, int *new_direct_jump_p) ...@@ -4255,16 +4252,12 @@ try_combine (rtx i3, rtx i2, rtx i1, rtx i0, int *new_direct_jump_p)
if (! added_sets_2 if (! added_sets_2
&& (newi2pat == 0 || ! reg_mentioned_p (i2dest, newi2pat)) && (newi2pat == 0 || ! reg_mentioned_p (i2dest, newi2pat))
&& ! i2dest_in_i2src) && ! i2dest_in_i2src)
{ INC_REG_N_SETS (REGNO (i2dest), -1);
regno = REGNO (i2dest);
INC_REG_N_SETS (regno, -1);
}
} }
if (i1 && REG_P (i1dest)) if (i1 && REG_P (i1dest))
{ {
rtx link; rtx link, i1_insn = 0, i1_val = 0, set;
rtx i1_insn = 0, i1_val = 0, set;
for (link = LOG_LINKS (i3); link; link = XEXP (link, 1)) for (link = LOG_LINKS (i3); link; link = XEXP (link, 1))
if ((set = single_set (XEXP (link, 0))) != 0 if ((set = single_set (XEXP (link, 0))) != 0
...@@ -4273,15 +4266,13 @@ try_combine (rtx i3, rtx i2, rtx i1, rtx i0, int *new_direct_jump_p) ...@@ -4273,15 +4266,13 @@ try_combine (rtx i3, rtx i2, rtx i1, rtx i0, int *new_direct_jump_p)
record_value_for_reg (i1dest, i1_insn, i1_val); record_value_for_reg (i1dest, i1_insn, i1_val);
regno = REGNO (i1dest);
if (! added_sets_1 && ! i1dest_in_i1src) if (! added_sets_1 && ! i1dest_in_i1src)
INC_REG_N_SETS (regno, -1); INC_REG_N_SETS (REGNO (i1dest), -1);
} }
if (i0 && REG_P (i0dest)) if (i0 && REG_P (i0dest))
{ {
rtx link; rtx link, i0_insn = 0, i0_val = 0, set;
rtx i0_insn = 0, i0_val = 0, set;
for (link = LOG_LINKS (i3); link; link = XEXP (link, 1)) for (link = LOG_LINKS (i3); link; link = XEXP (link, 1))
if ((set = single_set (XEXP (link, 0))) != 0 if ((set = single_set (XEXP (link, 0))) != 0
...@@ -4290,9 +4281,8 @@ try_combine (rtx i3, rtx i2, rtx i1, rtx i0, int *new_direct_jump_p) ...@@ -4290,9 +4281,8 @@ try_combine (rtx i3, rtx i2, rtx i1, rtx i0, int *new_direct_jump_p)
record_value_for_reg (i0dest, i0_insn, i0_val); record_value_for_reg (i0dest, i0_insn, i0_val);
regno = REGNO (i0dest);
if (! added_sets_0 && ! i0dest_in_i0src) if (! added_sets_0 && ! i0dest_in_i0src)
INC_REG_N_SETS (regno, -1); INC_REG_N_SETS (REGNO (i0dest), -1);
} }
/* Update reg_stat[].nonzero_bits et al for any changes that may have /* Update reg_stat[].nonzero_bits et al for any changes that may have
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment