diff options
| author | Geoffrey Keating <geoffk@apple.com> | 2002-10-12 00:00:39 +0000 |
|---|---|---|
| committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2002-10-12 00:00:39 +0000 |
| commit | 5dd78e9a69102038e5dcf029c718bfade6dd5461 (patch) | |
| tree | fc3bbf2bb824ba3d8955f5fa89f3124ae65e30a8 /gcc/cse.c | |
| parent | 8eb32f9496d242b2fe29b701c909ad61ff279a3e (diff) | |
| download | gcc-5dd78e9a69102038e5dcf029c718bfade6dd5461.zip gcc-5dd78e9a69102038e5dcf029c718bfade6dd5461.tar.gz gcc-5dd78e9a69102038e5dcf029c718bfade6dd5461.tar.bz2 | |
cse.c (mention_regs): Set SUBREG_TICKED to the register number, not the address of the REG.
* cse.c (mention_regs): Set SUBREG_TICKED to the register number,
not the address of the REG.
(struct cse_reg_info): Make subreg_ticked unsigned.
From-SVN: r58075
Diffstat (limited to 'gcc/cse.c')
| -rw-r--r-- | gcc/cse.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -319,7 +319,7 @@ struct cse_reg_info /* The SUBREG that was set when REG_TICK was last incremented. Set to -1 if the last store was to the whole register, not a subreg. */ - int subreg_ticked; + unsigned int subreg_ticked; }; /* A free list of cse_reg_info entries. */ @@ -1223,14 +1223,14 @@ mention_regs (x) Otherwise, remove any memory of the entire register and all its subregs from the table. */ if (REG_TICK (i) - REG_IN_TABLE (i) > 1 - || SUBREG_TICKED (i) != SUBREG_REG (x)) + || SUBREG_TICKED (i) != REGNO (SUBREG_REG (x))) remove_invalid_refs (i); else remove_invalid_subreg_refs (i, SUBREG_BYTE (x), GET_MODE (x)); } REG_IN_TABLE (i) = REG_TICK (i); - SUBREG_TICKED (i) = SUBREG_REG (x); + SUBREG_TICKED (i) = REGNO (SUBREG_REG (x)); return 0; } |
