This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc, support, for, nested, low-overhead, looping
- From: Michael Hayes <m dot hayes at elec dot canterbury dot ac dot nz>
- To: Saira <saira_viqar at yahoo dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 23 Apr 2002 23:49:06 +1200
- Subject: Re: gcc, support, for, nested, low-overhead, looping
- References: <20020422102051.82674.qmail@web20606.mail.yahoo.com>
Saira writes:
> However, the loop optimizer fails to use these
> patterns for outer loops in some cases--for example
> when the loop's index variable is declared global. e.g
This I believe is fair punishment for using a global variable
as a loop counter :-)
<code snipped>
> In the above code the loop optimizer will only insert
> the doloop patterns for the inner loop and not the
> outer loop.
What does the loop optimizer say when you compile with -dL?
It should indicate why it rejected optimising the outer loop.
Michael.