This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Using secondary reload to reload CONST_INT?
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Georg-Johann Lay <avr at gjlay dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 20 Mar 2011 11:45:16 -0700
- Subject: Re: Using secondary reload to reload CONST_INT?
- References: <4D863276.10309@gjlay.de>
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