Loop unrolling

Martin von Loewis martin@mira.isdn.cs.tu-berlin.de
Sat Sep 19 12:03:00 GMT 1998


> Not sure if this would be considered empty either.  

I believe this case that got this started is

struct Foo{
  Foo(){}
};

main()
{
  Foo foo[30];
}

g++ would generate a loop to call all the empty constructors, and
nobody would optimize-away this empty implicit loop.

Regards,
Martin




More information about the Gcc mailing list