This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Loop unrolling
- To: Richard Henderson <rth at cygnus dot com>
- Subject: Re: Loop unrolling
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 12 Jun 1998 17:16:24 -0300
- Cc: Mike Stump <mrs at wrs dot com>, amylaar at cygnus dot co dot uk, egcs-patches at cygnus dot com, egcs at cygnus dot com, pfeifer at dbai dot tuwien dot ac dot at
- References: <199806111804.LAA28554@kankakee.wrs.com> <19980611193525.C3271@dot.cygnus.com>
Richard Henderson <rth@cygnus.com> writes:
> Also a nonsense definition:
> for (i = 0; i < 10; ++i) continue;
Someone once has suggested a special syntax to denote an empty loop:
for (i=0; i<10; ++i) {{;;}}
The {{;;}} sequence would be recognized by gcc as a special token,
that expanded to a special RTL node that marked the enclosing loop as
non-removable.
Alternatively, we could use this ``nonsense'' definition you have
presented to denote non-removable empty loops.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil