aboutsummaryrefslogtreecommitdiff
path: root/gcc/local-alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/local-alloc.c')
-rw-r--r--gcc/local-alloc.c4
1 files changed, 2 insertions, 2 deletions
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;
}