This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: new register allocator and HARD_REGNO_CALL_PART_CLOBBERED
- From: Michael Matz <matz at suse dot de>
- To: Joern Rennecke <joern dot rennecke at superh dot com>
- Cc: Daniel Berlin <dberlin at dberlin dot org>,Herman ten Brugge <hermantenbrugge at home dot nl>,Dale Johannesen <dalej at apple dot com>, <gcc at gcc dot gnu dot org>
- Date: Wed, 14 May 2003 14:37:44 +0200 (CEST)
- Subject: Re: new register allocator and HARD_REGNO_CALL_PART_CLOBBERED
Hi,
On Wed, 14 May 2003, Joern Rennecke wrote:
> You already handle registers that are in call_used_reg_set in
> choose_spill_colors, albeit I must say that adding a constant cost of
> 1000 to all registers that would require one or more caller-saves is
> not a very fine-honed heuristic.
>
> Is the current handling of caller-saves in choose_spill_colors something
> you intend to move away int df.c?
I have patches in queue here, that make the new-regalloc use caller saved
regs for pseudos live over calls, if that seems worthwhile. The actual
emission of caller-save code is still deferred to caller-save.c, though.
Ciao,
Michael.