This is the mail archive of the gcc@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: Empty loops removal (Was Re: Some extra decorations)


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


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