Commit 5af91171 by Richard Kenner

(try_combine): If I2DEST was used in I2SRC, it isn't unused just

because there is no SET for I2 anymore.

From-SVN: r7653
parent 99d3d26e
...@@ -2262,7 +2262,7 @@ try_combine (i3, i2, i1) ...@@ -2262,7 +2262,7 @@ try_combine (i3, i2, i1)
/* If the reg formerly set in I2 died only once and that was in I3, /* If the reg formerly set in I2 died only once and that was in I3,
zero its use count so it won't make `reload' do any work. */ zero its use count so it won't make `reload' do any work. */
if (! added_sets_2 && newi2pat == 0) if (! added_sets_2 && newi2pat == 0 && ! i2dest_in_i2src)
{ {
regno = REGNO (i2dest); regno = REGNO (i2dest);
reg_n_sets[regno]--; reg_n_sets[regno]--;
...@@ -2286,7 +2286,7 @@ try_combine (i3, i2, i1) ...@@ -2286,7 +2286,7 @@ try_combine (i3, i2, i1)
record_value_for_reg (i1dest, i1_insn, i1_val); record_value_for_reg (i1dest, i1_insn, i1_val);
regno = REGNO (i1dest); regno = REGNO (i1dest);
if (! added_sets_1) if (! added_sets_1 && ! i1dest_in_i1src)
{ {
reg_n_sets[regno]--; reg_n_sets[regno]--;
if (reg_n_sets[regno] == 0 if (reg_n_sets[regno] == 0
......
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