This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: loop.c: n_times_set, n_times_used
- To: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Subject: Re: loop.c: n_times_set, n_times_used
- From: Jeffrey A Law <law at hurl dot cygnus dot com>
- Date: Fri, 11 Dec 1998 01:33:49 -0700
- cc: egcs at cygnus dot com, gcc2 at gnu dot org
- Reply-To: law at cygnus dot com
In message <199812110002.AAA11619@phal.cygnus.co.uk>you write:
> n_times_used denotes actually the number of times a register is set,
> while n_times_set means different things depending on when you look.
> However, strength reduction wants to know the number of times a register
> is used, and picks the obvious choice of n_times_used - pity that it
> doesn't work...
>
> I propose that we rename n_times_set to set_in_loop and
> n_times_used to n_times_set. Then we are free to allocate an
> n_times_used array in strength_reduce that actually does what the name
> suggests.
Seems like the right thing to do to me.
jeff