From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 75852 invoked by alias); 15 Dec 2015 14:37:27 -0000 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 Received: (qmail 75771 invoked by uid 89); 15 Dec 2015 14:37:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 15 Dec 2015 14:37:25 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id ADF1B29A6DA; Tue, 15 Dec 2015 14:37:23 +0000 (UTC) Received: from localhost.localdomain (vpn1-6-13.ams2.redhat.com [10.36.6.13]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tBFEbMYT019873; Tue, 15 Dec 2015 09:37:22 -0500 Subject: Re: [PATCH][combine] PR rtl-optimization/68651 Try changing rtx from (r + r) to (r << 1) to aid recognition To: Richard Earnshaw , Kyrill Tkachov , GCC Patches References: <566EB527.6070305@foss.arm.com> <56702223.80702@redhat.com> <567024C4.2080208@foss.arm.com> Cc: Segher Boessenkool From: Bernd Schmidt Message-ID: <5670259E.1040209@redhat.com> Date: Tue, 15 Dec 2015 14:37:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <567024C4.2080208@foss.arm.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-12/txt/msg01482.txt.bz2 On 12/15/2015 03:33 PM, Richard Earnshaw wrote: > > It's also possible that this would explicitly break some other > optimization passes (such as the way in which multiplies are synthesised > with shift/add operations). How so? IMO such a change would make cost calculations more accurate and should help rather than break anything. Bernd