From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 38778 invoked by alias); 20 Sep 2019 20:25:09 -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 38770 invoked by uid 89); 20 Sep 2019 20:25:09 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=UD:simplify-rtx.c, simplifyrtxc, simplify-rtx.c, followon 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 ESMTP; Fri, 20 Sep 2019 20:25:07 +0000 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9EEFC2A09A1; Fri, 20 Sep 2019 20:25:06 +0000 (UTC) Received: from localhost.localdomain (ovpn-112-52.rdu2.redhat.com [10.10.112.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1E00F60C18; Fri, 20 Sep 2019 20:25:05 +0000 (UTC) Subject: Re: Extend neg_const_int simplifications to other const rtxes To: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com References: From: Jeff Law Openpgp: preference=signencrypt Message-ID: <3ba1ed81-6c9d-0fda-b6f6-6c722f93ad5d@redhat.com> Date: Fri, 20 Sep 2019 20:25:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg01268.txt.bz2 On 9/18/19 12:56 AM, Richard Sandiford wrote: > This patch generalises some neg_const_int-based rtx simplifications > so that they handle all CONST_SCALAR_INTs and also CONST_POLY_INT. > This actually simplifies things a bit, since we no longer have > to treat HOST_WIDE_INT_MIN specially. > > This is tested by later SVE patches. > > Tested on aarch64-linux-gnu with SVE (with and without follow-on > patches) and x86_64-linux-gnu. OK to install? > > Richard > > > 2019-09-18 Richard Sandiford > > gcc/ > * simplify-rtx.c (neg_const_int): Replace with... > (neg_poly_int_rtx): ...this new function. > (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C) > to all CONST_SCALAR_INTs and to CONST_POLY_INT. > (simplify_plus_minus): Likewise for constant terms here. OK jeff