This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: loop optimizations
On Sat, Jan 26, 2002 at 12:31:09AM +0100, Jan Hubicka wrote:
> Not exactly. Gcc is able to do loop reversal that would do the trick you
> suggest, but only when the induction variable (i) is used only as the
> iteration counter, not for something else. (or gcc figures out way how to
> replace that uses by different construct, such as autoincrement addressing).
We'll do this when generating decrement-and-branch instructions.
r~