loop.c: Revert 2002-08-15 change.

* loop.c: Revert 2002-08-15 change.
	(LOOP_REGNO_NREGS): Ensure type is int.

From-SVN: r57992
This commit is contained in:
Kaveh R. Ghazi 2002-10-09 20:58:12 +00:00 committed by Kaveh Ghazi
parent c6449a1dbc
commit 44a5565d43
2 changed files with 11 additions and 6 deletions

View File

@ -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

View File

@ -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,