summaryrefslogtreecommitdiffstats
path: root/gcc/regclass.c
diff options
context:
space:
mode:
authordberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-29 18:21:08 +0000
committerdberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-29 18:21:08 +0000
commite0d1ffe3fe75fb094c8fafd70379406ba2829158 (patch)
tree338c1dfc401b2ef68f7aac1d0b6b6ba145663419 /gcc/regclass.c
parentfa233610fcbee7f3e67375962e6effe96c2b19e2 (diff)
downloadppe42-gcc-e0d1ffe3fe75fb094c8fafd70379406ba2829158.tar.gz
ppe42-gcc-e0d1ffe3fe75fb094c8fafd70379406ba2829158.zip
2001-07-27 Daniel Berlin <dan@cgsoftware.com>
* regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we increment REG_N_SETS. 2001-07-26 Daniel Berlin <dan@cgsoftware.com> * sbitmap.h: New prototype for sbitmap_a_xor_b. * sbitmap.c (sbitmap_a_xor_b): New function. #ifdef the basic block stuff on the define IN_GCC. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44460 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/regclass.c')
-rw-r--r--gcc/regclass.c5
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
OpenPOWER on IntegriCloud