Loop unrolling

Alexandre Oliva oliva@dcc.unicamp.br
Fri Jun 12 14:00:00 GMT 1998

Richard Henderson <rth@dot.cygnus.com> writes:

> On Fri, Jun 12, 1998 at 05:16:24PM -0300, Alexandre Oliva wrote:
>> for (i=0; i<10; ++i) {{;;}}

> for (i = 0; i < 10; ++i) __asm __volatile ("" : );

> cannot be removed.  no need for special syntax.

So why don't we decide to remove empty loops regardless of them being
explicit or not, and suggest people to use this syntax or
-fno-remove-empty-loops in order to prevent empty loops from being
optimized away?

Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
Universidade Estadual de Campinas, SP, Brasil

More information about the Gcc-patches mailing list