This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
loop optimizations
- From: "Marko Mlinar" <markom at opencores dot org>
- To: <gcc at gcc dot gnu dot org>
- Date: Fri, 25 Jan 2002 09:07:11 +0100
- Subject: loop optimizations
Hello !
I have a short question:
Is gcc 3.1 capable of convesion classical loops with simple iterators, e.g.
int a[50], b[50], i;
for (i = 0; i < 50; i++)
{
a[i] = b[i];
}
to more optimized code that uses test like instructions:
i = 49;
while (i != 0) /* Test instruction used */
{
a[i] = b[i];
i--;
}
thanks,
Marko