This is the mail archive of the gcc@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]
Other format: [Raw text]

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~


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