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: Using secondary reload to reload CONST_INT?


On Sun, Mar 20, 2011 at 9:59 AM, Georg-Johann Lay <avr@gjlay.de> wrote:
> The drawback is that this allocates 4 GPRs (AVR is 8-bit machine). However,
> one "d"-reg would be sufficient to copy a const into class "l".

What about doing a split of consts before reload?  The MIPS and rs6000
targets split up their constant generation before reload to get better
code generation; maybe AVR should do the same?  It could also allow
some CSE to happen reducing the number of registers needed in general.

Thanks,
Andrew Pinski


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