This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Loop unrolling
- To: Nathan Myers <ncm at nospam dot cantrip dot org>
- Subject: Re: Loop unrolling
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sat, 19 Sep 1998 00:49:13 -0600
- cc: egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <3602E6AF.ECC8E445@nospam.cantrip.org>you write:
> Generally the kinds of "empty" loops that show up in template
> expansions look something like:
>
> for (i = 0; i < 0; ++i) *p++ = *q++;
That's not empty though :-)
The compiler is certainly free to unroll it fully though.
> or probably more frequently
>
> for (i = 0; i < 10; ++i, ++p) { if (p); }
Not sure if this would be considered empty either.
jeff