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: Reducing RTL allocations


In message <orsn3tz4qs.fsf@free.redhat.lsd.ic.unicamp.br>, Alexandre Oliva writ
es:
 > On Jun  9, 2002, law@redhat.com wrote:
 > 
 > > In message <orbsaly8lj.fsf@free.redhat.lsd.ic.unicamp.br>, Alexandre Oliva
 >  writes:
 > 
 > > How could regrename safely modify any reg in-place since some of the hard
 > > regs is sees come from pseudos which were turned into hard regs (which are
 > > shared).
 > 
 > This is what I saw:
 > 
 > static void
 > do_replace (chain, reg)
 >      struct du_chain *chain;
 >      int reg;
 > {
 >   while (chain)
 >     {
 >       unsigned int regno = ORIGINAL_REGNO (*chain->loc);
 >       *chain->loc = gen_raw_REG (GET_MODE (*chain->loc), reg);
 >       if (regno >= FIRST_PSEUDO_REGISTER)
 > 	ORIGINAL_REGNO (*chain->loc) = regno;
 >       chain = chain->next_use;
 >     }
 > }
 > 
 > I misread it as modifying the reg in place.  Somehow I managed to miss
 > the intervening gen_raw_REG.  D'oh.  Sorry about the noise :-(
No problem :-)  

jeff


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