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


> 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



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