(optimize_reg_copy_2): Correct reg_n_refs updates.

From-SVN: r2829
This commit is contained in:
Jim Wilson 1992-12-01 10:44:27 -08:00
parent 0918de5b44
commit 6102fe9527
1 changed files with 2 additions and 2 deletions

View File

@ -860,8 +860,8 @@ optimize_reg_copy_2 (insn, dest, src)
/* We assume that a register is used exactly once per
insn in the updates below. If this is not correct,
no great harm is done. */
reg_n_refs[sregno] -= loop_depth;
reg_n_refs[dregno] += loop_depth;
reg_n_refs[dregno] -= loop_depth;
reg_n_refs[sregno] += loop_depth;
}