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]

Re: Loop unrolling



  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


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