This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [ast-optimizer-branch] Goto/Break/Continue/Switch elimination
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: Sebastian Pop <m1sp at csc dot liv dot ac dot uk>, <dnovillo at redhat dot com>,<gcc-patches at gcc dot gnu dot org>
- Date: Thu, 2 May 2002 12:13:33 -0400 (EDT)
- Subject: Re: [ast-optimizer-branch] Goto/Break/Continue/Switch elimination
>
> Even if it wasn't faster, it would still be a win in terms of making it
> easier to write optimizations and analyses.
I forgot to mention two things.
1. It also makes your CFG regular.
2. In general, from an optimization standpoint, it's always better
to make things explicit rather than implicit.
All goto/break/continue-elimination does is turn the implicit flow into an
explicit one.