ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos needing assignment rather than doing a...

* ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
	needing assignment rather than doing a two-phase assignment.  Remove
	unused variable 'm'.

From-SVN: r158458
This commit is contained in:
Jeff Law 2010-04-16 19:30:35 -06:00 committed by Jeff Law
parent 807a28fb5b
commit 016f9d9dcf
2 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,8 @@
2010-04-16 Jeff Law <law@redhat.com>
* ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
needing assignment rather than doing a two-phase assignment.
needing assignment rather than doing a two-phase assignment. Remove
unused variable 'm'.
2010-04-16 Jakub Jelinek <jakub@redhat.com>

View File

@ -2863,7 +2863,7 @@ ira_reassign_pseudos (int *spilled_pseudo_regs, int num,
HARD_REG_SET *pseudo_previous_regs,
bitmap spilled)
{
int i, m, n, regno;
int i, n, regno;
bool changed_p;
ira_allocno_t a, conflict_a;
HARD_REG_SET forbidden_regs;
@ -2901,7 +2901,7 @@ ira_reassign_pseudos (int *spilled_pseudo_regs, int num,
changed_p = false;
/* Try to assign hard registers to pseudos from
SPILLED_PSEUDO_REGS. */
for (m = i = 0; i < num; i++)
for (i = 0; i < num; i++)
{
regno = spilled_pseudo_regs[i];
COPY_HARD_REG_SET (forbidden_regs, bad_spill_regs);