Empty loops removal (Was Re: Some extra decorations)

Andrew Pinski pinskia@gmail.com
Sun May 3 23:21:00 GMT 2009


On Sun, May 3, 2009 at 4:17 PM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
>
> Yes, the rule is new for C++0x, and it is in the context of for, while
> and do-while loops only, not recursive calls.

Does this include loops form from gotos also?  Because this seems like
it is very limited and not useful for optimizations in general.  GCC
loop optimizations are not based on the source level constructs but
instead of based on the CFG.

-- Pinski



More information about the Libstdc++ mailing list