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: [ast-optimizer-branch] Goto/Break/Continue/Switch elimination


On Thu, May 02, 2002 at 10:23:41AM -0700, Richard Henderson wrote:
> On Thu, May 02, 2002 at 05:16:12PM +0100, Sebastian Pop wrote:
> > Further, this allows to work cleanly on the rest of optimizations
> > since we no longer have to handle LABEL_STMTs nor GOTO_STMTs.
> 
> So what happens when you can't eliminate all the gotos?  Do we
> suddenly lose the ability to perform any optimizations?
> 

You mean that it is unsafe to use the goto-free version for extracting
information that we will use in the rest of the compiler ?

If we suppose that the code is goto-free during the construction of the CFG,
and that we're not able to remove all gotos from a program, then all the rest 
of the compiler could suffer.  

I have to think a little more about this warning.
Thanks.


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