This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Remove CLEANUP_PRE_LOOP
- From: Jeffrey A Law <law at redhat dot com>
- To: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 01 Mar 2006 09:23:43 -0700
- Subject: Re: [patch] Remove CLEANUP_PRE_LOOP
- References: <20060301160822.GA23168@atrey.karlin.mff.cuni.cz>
- Reply-to: law at redhat dot com
On Wed, 2006-03-01 at 17:08 +0100, Zdenek Dvorak wrote:
> Hello,
>
> with loop.c gone, cfg cleanup does not need to care about preserving
> structure of loop notes. The actual use of CLEANUP_PRE_LOOP flag in
> cfg cleanup was removed with -floop-optimize, this patch removes the
> CLEANUP_PRE_LOOP flag itself.
>
> Bootstrapped & regtested on ia64.
>
> Zdenek
>
> * cse.c (rest_of_handle_cse): Do not pass CLEANUP_PRE_LOOP to cfg
> cleanup.
> * gcse.c (rest_of_handle_gcse): Ditto.
> * except.c (gate_handle_eh): Ditto.
> * cfgcleanup.c (rest_of_handle_jump2): Ditto.
> * basic-block.h (CLEANUP_PRE_LOOP): Remove.
Nice. Note that we also run a CSE pass after loop; that CSE pass may
be redundant with the removal of the old loop optimizer.
jeff