From 6102fe95277924b9ef054397540b61d5be408956 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Tue, 1 Dec 1992 10:44:27 -0800 Subject: (optimize_reg_copy_2): Correct reg_n_refs updates. From-SVN: r2829 --- gcc/local-alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc') diff --git a/gcc/local-alloc.c b/gcc/local-alloc.c index 471bd04..7cdd050 100644 --- a/gcc/local-alloc.c +++ b/gcc/local-alloc.c @@ -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; } -- cgit v1.1