From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15977 invoked by alias); 1 Jul 2019 16:32:13 -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 15931 invoked by uid 89); 1 Jul 2019 16:32:13 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=define_expands, dennis, marks, Dennis X-HELO: foss.arm.com Received: from foss.arm.com (HELO foss.arm.com) (217.140.110.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 01 Jul 2019 16:32:11 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 399292B; Mon, 1 Jul 2019 09:32:10 -0700 (PDT) Received: from arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6A23A3F703; Mon, 1 Jul 2019 09:32:09 -0700 (PDT) Date: Mon, 01 Jul 2019 16:32:00 -0000 From: James Greenhalgh To: Dennis Zhang Cc: "gcc-patches@gcc.gnu.org" , nd , Richard Earnshaw , Marcus Shawcroft Subject: Re: [PATCH][AArch64] Remove constraint strings from define_expand constructs in the back end Message-ID: <20190701163207.GB23283@arm.com> References: <76753858-bb8d-2016-56c8-fc883fcd7f9a@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <76753858-bb8d-2016-56c8-fc883fcd7f9a@arm.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg00069.txt.bz2 On Mon, Jun 24, 2019 at 04:33:40PM +0100, Dennis Zhang wrote: > Hi, > > A number of AArch64 define_expand patterns have specified constraints > for their operands. But the constraint strings are ignored at expand > time and are therefore redundant/useless. We now avoid specifying > constraints in new define_expands, but we should clean up the existing > define_expand definitions. > > For example, the constraint "=w" is removed in the following case: > (define_expand "sqrt2" > [(set (match_operand:GPF_F16 0 "register_operand" "=w") > The "" marks with an empty constraint in define_expand are removed as well. > > The patch is tested with the build configuration of > --target=aarch64-none-linux-gnu, and it passes gcc/testsuite. This is OK for trunk. Thanks, James > gcc/ChangeLog: > > 2019-06-21 Dennis Zhang > > * config/aarch64/aarch64-simd.md: Remove redundant constraints > from define_expand. > * config/aarch64/aarch64-sve.md: Likewise. > * config/aarch64/aarch64.md: Likewise. > * config/aarch64/atomics.md: Likewise.