This is the mail archive of the gcc-patches@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: resources.c patch updated....


On Wed, Nov 03, 1999 at 02:24:12PM +0100, Jan Hubicka wrote:
> Even with recent roolback in resource.c, this part of patch is usefull
> for peephole2. I really need peephole2 reliable for my reg-stack changes.

I'm thinking of tackling this from a different direction.

For one, resource.c does far too much work.  What we want
is to begin with global_live_at_end and back up over the
insns one by one as we match for peepholes.  

To convince mark_target_regs_live, by way of find_free_reg
not to do too much work, we can interface with the hash
table that it sets up.  I.e. do our own liveness calculation
and then inject the results into resource.c's tables.

I'm undecided how much liveness calculation infrastructure
could be reused.  Certainly it seems like we've got several
copies of that running around...



r~


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