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]
Other format: [Raw text]

Re: Empty loop elimination in 4.0 ?


Andrew Pinski wrote:

Or even in C now a days with all the optimizations we could do like
converting some loops to memset which still keeps the loop because it is
ideal to have later passes delete the loop.

A loop converted to memset is not an empty loop! Can you give some other example to show what you mean. to me if a loop ends up empty, it is always a case to warn the programmer about.


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