[patch, fortran] Final TRIM optimizations

Thomas Koenig tkoenig@netcologne.de
Mon Jun 13 02:48:00 GMT 2011

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?


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trim-final.diff
Type: text/x-patch
Size: 3547 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110613/d72b4402/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: trim_optimize_8.f90
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110613/d72b4402/attachment.f90>

More information about the Gcc-patches mailing list