This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Improvement for update_equiv_regs
- To: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Subject: Re: Improvement for update_equiv_regs
- From: Jeffrey A Law <law at upchuck dot cygnus dot com>
- Date: Mon, 08 Feb 1999 18:43:07 -0700
- cc: wilson at cygnus dot com, egcs-patches at egcs dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <199902050916.JAA17782@phal.cygnus.co.uk>you write:
> update_equiv_regs still misses a number of function invariants because
> they have no REG_EQUAL notes.
>
> Here is a fix:
>
> Fri Feb 5 09:13:41 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
>
> * local-alloc.c (update_equiv_regs): If there is no REG_EQUAL note
> on an insn and function_invariant_p returns nonzero for the
> source, add a REG_EQUAL note.
Seems to me we should try to get those notes attached to the insns earlier
in the compiler rather than later.
Is there some reason not to do that?
jeff