From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31741 invoked by alias); 12 Jun 2011 22:42:09 -0000 Received: (qmail 31724 invoked by uid 22791); 12 Jun 2011 22:42:08 -0000 X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_50,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from troutmask.apl.washington.edu (HELO troutmask.apl.washington.edu) (128.95.76.21) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 12 Jun 2011 22:41:55 +0000 Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.4/8.14.4) with ESMTP id p5CMfsU5010311; Sun, 12 Jun 2011 15:41:54 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.4/8.14.4/Submit) id p5CMfrRC010310; Sun, 12 Jun 2011 15:41:53 -0700 (PDT) (envelope-from sgk) Date: Mon, 13 Jun 2011 03:18:00 -0000 From: Steve Kargl To: Thomas Koenig Cc: "fortran@gcc.gnu.org" , gcc-patches Subject: Re: [patch, fortran] Final TRIM optimizations Message-ID: <20110612224153.GA10301@troutmask.apl.washington.edu> References: <4DF53C82.1030202@netcologne.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DF53C82.1030202@netcologne.de> User-Agent: Mutt/1.4.2.3i Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg00958.txt.bz2 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 > > * 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 > > * gfortran.dg/trim_optimize_8.f90: New test case. OK. -- Steve