This is the mail archive of the gcc-patches@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: [patch] Empty loop removal



On Jun 30, 2005, at 5:41 PM, Zdenek Dvorak wrote:


+   for (i = 0; i != n; i += 2)
+     ;

Can't we just convert this loop to: if ((n%2) != 0) while (true) ;

Or do we need to know more information?

Thanks,
Andrew Pinski


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