From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15697 invoked by alias); 22 May 2011 18:59:54 -0000 Received: (qmail 15689 invoked by uid 22791); 22 May 2011 18:59:54 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 22 May 2011 18:59:38 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 35C78CB02D0; Sun, 22 May 2011 20:59:37 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XngYEIXOZZdX; Sun, 22 May 2011 20:59:34 +0200 (CEST) Received: from [192.168.1.2] (bon31-9-83-155-120-49.fbx.proxad.net [83.155.120.49]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 1C1C8CB026C; Sun, 22 May 2011 20:59:33 +0200 (CEST) From: Eric Botcazou To: Tom de Vries Subject: Re: [PATCH PR45098, 9/10] Cheap shift-add. Date: Sun, 22 May 2011 21:11:00 -0000 User-Agent: KMail/1.9.9 Cc: gcc-patches@gcc.gnu.org, Zdenek Dvorak References: <4DD21F6E.4050308@codesourcery.com> <201105210940.41771.ebotcazou@adacore.com> <4DD9348A.8030807@codesourcery.com> In-Reply-To: <4DD9348A.8030807@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201105222059.35361.ebotcazou@adacore.com> 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/msg01570.txt.bz2 > I didn't manage to reproduce the breakage, but I think this patch will fix > it. You need a 32-bit host. > The patch makes sure cst_and_fits_in_hwi is tested before using > int_cst_value. This should be sufficient indeed, thanks. > 2011-05-22 Tom de Vries > > PR target/45098 > * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fixed const test > for call to get_shiftadd_cost. Present tense in the ChangeLog. -- Eric Botcazou