This is the mail archive of the gcc-bugs@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]

Re: Reload questions



Toshiyasu Morita <tm@netcom.com> writes:

> I'm trying to figure out the difference between an input reload and an 
> output reload. I'm assuming from the name that an "input reload" is a 
> restore (from stack) for the input operands of an insn, and an "output 
> reload" is a spill (to the stack) for the output operands of an insns.
> 
> Are my assumptions correct?

These are typical examples of input and output reloads.  Generally, an
input reload is a reload for the input operands of an insn, and
similarly for an output reload :-).

Reloads can also do things like:

- copy from the wrong kind of register to the right kind
- turn the wrong kind (non-offsettable) of MEM into the right kind,
  usually by getting its address in a register
- substitute an immediate value for a register

-- 
- Geoffrey Keating <geoffk@cygnus.com>

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