(optimize_reg_copy_1): After decreasing sregno's
reg_live_length, correct it if it is now obviously too small. From-SVN: r6291
This commit is contained in:
parent
b418c26e7f
commit
2d19a71c10
|
@ -791,6 +791,11 @@ optimize_reg_copy_1 (insn, dest, src)
|
|||
if (sregno >= FIRST_PSEUDO_REGISTER)
|
||||
{
|
||||
reg_live_length[sregno] -= length;
|
||||
/* reg_live_length is only an approximation after combine
|
||||
if sched is not run, so make sure that we still have
|
||||
a reasonable value. */
|
||||
if (reg_live_length[sregno] < 2)
|
||||
reg_live_length[sregno] = 2;
|
||||
reg_n_calls_crossed[sregno] -= n_calls;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue