This is the mail archive of the gcc@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: Reload question


On Thu, 25 Jul 2002, Mark Mitchell wrote:

> >     In reload, after doing register allocation, we do, in "reload()":
> >
> >     That mutates the instruction in place, with the possible result that
> >     it is no longer recognizable.
> >
> >     Who is supposed to be responsible for making the instruction
> >     recognizable again?
> >
> > Reload itself.  The insn won't match its constraints.
> 
> But this happens *at the end* of reload.  Search for:
> 
>    PUT_CODE (reg, MEM)
> 
> in reload1.c.
> 
> So, where in reload is the instruction supposed to be checked to see
> that it is safe to make this transmogrification?

find_reloads.  If the modification isn't safe, we'll make a reload for
the operand and thus ensure that when we get to the code that modifies
pseudos into MEMs, the transformation is correct.


Bernd


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