This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch, fortran] Final TRIM optimizations
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Thomas Koenig <tkoenig at netcologne dot de>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 12 Jun 2011 15:41:53 -0700
- Subject: Re: [patch, fortran] Final TRIM optimizations
- References: <4DF53C82.1030202@netcologne.de>
On Mon, Jun 13, 2011 at 12:24:02AM +0200, Thomas Koenig wrote:
> Hello world,
>
> this is the last round of TRIM optimizations. This patch extends the
> treatment of trailing TRIMs in concatenations to comparisions. It also
> does a bit of code cleanup by removing some duplication, and by not
> changing the rhs in optimize_assignment.
>
> OK for trunk?
>
> Thomas
>
> 2011-06-13 Thomas Koenig <tkoenig@gcc.gnu.org>
>
> * frontend-passes.c (remove_trim): New function.
> (optimize_assignment): Use it.
> (optimize_comparison): Likewise. Return correct status
> for previous change.
>
> 2011-06-13 Thomas Koenig <tkoenig@gcc.gnu.org>
>
> * gfortran.dg/trim_optimize_8.f90: New test case.
OK.
--
Steve