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: gcc, support, for, nested, low-overhead, looping


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.


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