From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27868 invoked by alias); 18 May 2011 21:13:03 -0000 Received: (qmail 27859 invoked by uid 22791); 18 May 2011 21:13:02 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,TW_EG,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from nikam.ms.mff.cuni.cz (HELO nikam.ms.mff.cuni.cz) (195.113.20.16) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 18 May 2011 21:12:49 +0000 Received: from localhost (occam.kam.mff.cuni.cz [195.113.17.166]) by nikam.ms.mff.cuni.cz (Postfix) with ESMTP id E21979AC85D; Wed, 18 May 2011 23:12:47 +0200 (CEST) Received: by localhost (Postfix, from userid 29025) id DE29C564111; Wed, 18 May 2011 23:12:47 +0200 (CEST) Date: Thu, 19 May 2011 04:45:00 -0000 From: Zdenek Dvorak To: Tom de Vries Cc: gcc-patches@gcc.gnu.org Subject: Re: [PATCH PR45098, 5/10] Bound cost Message-ID: <20110518211247.GB19788@kam.mff.cuni.cz> References: <4DD21F6E.4050308@codesourcery.com> <4DD22146.7060103@codesourcery.com> <4DD3FB26.3030305@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DD3FB26.3030305@codesourcery.com> User-Agent: Mutt/1.5.18 (2008-05-17) 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-05/txt/msg01342.txt.bz2 Hi, > Resubmitting with comment. > > This improves the estimation of cost of bound calculation: > - It tries to estimate whether an ssa_name can be used in the loop > at zero cost, or whether a regcopy is needed to keep the ssa_name > alive during the loop, and counts the cost of the regcopy. > - It adjusts the cost of a complex loop bound: if a complex loop bound > uses more that 1 invariant, it is counted as a new single invariant. > - It estimates the cost of an int bound at zero. > > 2011-05-05 Tom de Vries > > PR target/45098 > * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of > get_loop_invariant_expr_id. > (get_loop_invariant_expr_id): Use get_expr_id. > (parm_decl_cost): New function. > (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost. > Improve bound cost estimation. Use different inv_expr_id for elim and > express cases. OK, Zdenek