diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2002-10-09 20:58:12 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2002-10-09 20:58:12 +0000 |
commit | 44a5565d43aa79ea9fa56e5d696b59d12db33191 (patch) | |
tree | e8ab6448a4498366d96fccbde4b0559abf84e9b9 /gcc | |
parent | c6449a1dbc2ede62cdf8fc3d73f52d2f2796567b (diff) | |
download | gcc-44a5565d43aa79ea9fa56e5d696b59d12db33191.zip gcc-44a5565d43aa79ea9fa56e5d696b59d12db33191.tar.gz gcc-44a5565d43aa79ea9fa56e5d696b59d12db33191.tar.bz2 |
loop.c: Revert 2002-08-15 change.
* loop.c: Revert 2002-08-15 change.
(LOOP_REGNO_NREGS): Ensure type is int.
From-SVN: r57992
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/loop.c | 12 |
2 files changed, 11 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4492c11..c2bdf92 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-10-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * loop.c: Revert 2002-08-15 change. + (LOOP_REGNO_NREGS): Ensure type is int. + 2002-10-09 David Edelsohn <edelsohn@gnu.org> * config/rs6000/rs6000.md (extenddftf2): Change to define_insn @@ -151,7 +151,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #define LOOP_REGNO_NREGS(REGNO, SET_DEST) \ ((REGNO) < FIRST_PSEUDO_REGISTER \ - ? HARD_REGNO_NREGS ((REGNO), GET_MODE (SET_DEST)) : 1) + ? (int) HARD_REGNO_NREGS ((REGNO), GET_MODE (SET_DEST)) : 1) /* Vector mapping INSN_UIDs to luids. @@ -946,7 +946,7 @@ scan_loop (loop, flags) m->savings = regs->array[regno].n_times_set; if (find_reg_note (p, REG_RETVAL, NULL_RTX)) m->savings += libcall_benefit (p); - for (i = 0; i < (int) LOOP_REGNO_NREGS (regno, SET_DEST (set)); i++) + for (i = 0; i < LOOP_REGNO_NREGS (regno, SET_DEST (set)); i++) regs->array[regno+i].set_in_loop = move_insn ? -2 : -1; /* Add M to the end of the chain MOVABLES. */ loop_movables_add (movables, m); @@ -1050,7 +1050,7 @@ scan_loop (loop, flags) m->lifetime = LOOP_REG_LIFETIME (loop, regno); m->savings = 1; for (i = 0; - i < (int) LOOP_REGNO_NREGS (regno, SET_DEST (set)); + i < LOOP_REGNO_NREGS (regno, SET_DEST (set)); i++) regs->array[regno+i].set_in_loop = -1; /* Add M to the end of the chain MOVABLES. */ @@ -2193,7 +2193,7 @@ move_movables (loop, movables, threshold, insn_count) if (! m->partial) { int i; - for (i = 0; i < (int) LOOP_REGNO_NREGS (regno, m->set_dest); i++) + for (i = 0; i < LOOP_REGNO_NREGS (regno, m->set_dest); i++) regs->array[regno+i].set_in_loop = 0; } @@ -2258,7 +2258,7 @@ move_movables (loop, movables, threshold, insn_count) { int i; for (i = 0; - i < (int) LOOP_REGNO_NREGS (regno, m1->set_dest); + i < LOOP_REGNO_NREGS (regno, m1->set_dest); i++) regs->array[m1->regno+i].set_in_loop = 0; } @@ -3519,7 +3519,7 @@ count_one_set (regs, insn, x, last_set) { int i; int regno = REGNO (dest); - for (i = 0; i < (int) LOOP_REGNO_NREGS (regno, dest); i++) + for (i = 0; i < LOOP_REGNO_NREGS (regno, dest); i++) { /* If this is the first setting of this reg in current basic block, and it was set before, |