This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: What to do with new-ra for GCC 4.0
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: stevenb at suse dot de
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 4 Jan 05 11:30:01 EST
- Subject: Re: What to do with new-ra for GCC 4.0
To avoid spilling, it must try to satisfy constraints before
allocating. I am fairly sure this strategy would also help the
existing allocator.
But of course, the existing register allocator *is* trying to satisfy
constraints: that's what the whole register class preferencing logic is
all about.
> and its core algorithm is comprehensible enough
I disagree ;-)
The *core* algorithm is indeed quite comprehensible. It's the add-ons that
basically try to implement a register allocator that are very hard to
comprehend (I can't anymore either).