Commit 538fe8cd by Ian Lance Taylor

Add a case where reg_n_refs is cleared

From-SVN: r13561
parent a2ec2fad
...@@ -2355,7 +2355,9 @@ try_combine (i3, i2, i1) ...@@ -2355,7 +2355,9 @@ 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 && ! i2dest_in_i2src) if (! added_sets_2
&& (newi2pat == 0 || ! reg_mentioned_p (i2dest, newi2pat))
&& ! i2dest_in_i2src)
{ {
regno = REGNO (i2dest); regno = REGNO (i2dest);
reg_n_sets[regno]--; reg_n_sets[regno]--;
......
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