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]

Re: Loop unrolling


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
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil



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