Commit 6102fe95 by Jim Wilson

(optimize_reg_copy_2): Correct reg_n_refs updates.

From-SVN: r2829
parent 0918de5b
...@@ -860,8 +860,8 @@ optimize_reg_copy_2 (insn, dest, src) ...@@ -860,8 +860,8 @@ optimize_reg_copy_2 (insn, dest, src)
/* We assume that a register is used exactly once per /* We assume that a register is used exactly once per
insn in the updates below. If this is not correct, insn in the updates below. If this is not correct,
no great harm is done. */ 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;
} }
......
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