This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patches] Code cleanup - remove unused variables - part 2


Hi,

On Wed, 11 Sep 2002, Richard Henderson wrote:

> > -  int num;
> > -  int ialloc_prod;
> > -
> >    while (--len >= 0)
> > -    {
> > -      num = allocno_vec[len];
> > -      ialloc_prod = num * allocno_row_words;
> > -      IOR_HARD_REG_SET (allocno[num].hard_reg_conflicts, hard_regs_live);
> > -    }
> > +    IOR_HARD_REG_SET (allocno[allocno_vec[len]].hard_reg_conflicts,
> > +                      hard_regs_live);
>
> This is also incorrect.  We need to sum across the entire array.

He does.  After the patch it's
  while (--len >= 0) MACRO (a[ b[len] /*== former num*/ ]

> Presumably you only wanted to remove ialloc_prod?


Ciao,
Michael.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]