This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: regno_first_use_in
- To: Stan Cox <scox at cygnus dot com>
- Subject: Re: PATCH: regno_first_use_in
- From: Richard Henderson <rth at cygnus dot com>
- Date: Wed, 8 Mar 2000 14:37:37 -0800
- Cc: egcs-patches at egcs dot cygnus dot com
- References: <200003011806.SAA08390@equinox.cygnus.com>
On Wed, Mar 01, 2000 at 06:06:33PM +0000, Stan Cox wrote:
> This proposed patch adds regno_first_use_in as a complement to
> regno_use_in. It searches X for the first reference to REGNO. This
> can be used when building a def/use chain to find the use of REGNO in
> a SET_DEST if it also happens to appear in a SET_SRC.
Hurm. I'd rather you simply change the iteration order in
regno_use_in and documented the intent. The two functions
are otherwise identical and it seems silly to duplicate it.
r~