This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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: [patch, fortran] Final TRIM optimizations


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


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