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] Simplify initial RTL for loops


Roger Sayle <roger@www.eyesopen.com> writes:

> This patch reduces the number of RTL insns that we initially create
> for "infinite loops", such as "while (1)" or "for(;;)".  This is
> similar to my earlier patch to likewise improve "do {} while (1)".
> http://gcc.gnu.org/ml/gcc-patches/2002-09/msg00616.html

Cool!

>   genrtl_while_stmt (t)
>        tree t;
>   {
> !   tree cond;
>     emit_nop ();

Hmm, what is the point of that emit_nop()?  Why do we even have such a
thing?

zw


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