diff options
Diffstat (limited to 'gcc/regclass.c')
-rw-r--r-- | gcc/regclass.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/regclass.c b/gcc/regclass.c index bfde1e96bc7..2d80e7eb84a 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -2427,7 +2427,10 @@ reg_scan_mark_refs (x, insn, note_flag, min_regno) if (GET_CODE (dest) == REG && REGNO (dest) >= min_regno) - REG_N_SETS (REGNO (dest))++; + { + REG_N_SETS (REGNO (dest))++; + REG_N_REFS (REGNO (dest))++; + } /* If this is setting a pseudo from another pseudo or the sum of a pseudo and a constant integer and the other pseudo is known to be |