ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.

2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>

	* ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.

From-SVN: r171735
This commit is contained in:
Vladimir Makarov 2011-03-30 16:09:33 +00:00 committed by Vladimir Makarov
parent 8f98453427
commit 4648deb418
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
* ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
PR rtl-optimization/48332

View File

@ -1622,10 +1622,11 @@ assign_hard_reg (ira_allocno_t a, bool retry_p)
if (hard_regno >= 0
&& ira_class_hard_reg_index[aclass][hard_regno] >= 0)
{
enum machine_mode mode = ALLOCNO_MODE (conflict_a);
int conflict_nregs = hard_regno_nregs[hard_regno][mode];
int n_objects = ALLOCNO_NUM_OBJECTS (conflict_a);
int conflict_nregs;
mode = ALLOCNO_MODE (conflict_a);
conflict_nregs = hard_regno_nregs[hard_regno][mode];
if (conflict_nregs == n_objects && conflict_nregs > 1)
{
int num = OBJECT_SUBWORD (conflict_obj);