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] |
Hello, > >+ 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? yes, we can. But I don't see any practical gain in implementing this optimization. Zdenek
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |