From patchwork Wed Feb 2 00:21:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans-Peter Nilsson X-Patchwork-Id: 1587492 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=aQG7ssS0; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JpMtP4x51z9sFr for ; Wed, 2 Feb 2022 11:21:48 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C5252385BF92 for ; Wed, 2 Feb 2022 00:21:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C5252385BF92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1643761306; bh=/pMgISmfQKOoip+orgsPz9yW3hMRRosNVxYcGCo1R20=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=aQG7ssS0n6Aud9JnEhXZtW5GvAio4oxglDoSkFHAegEkrQikYX+CArnkvrYba2nUe w4xnF6ZL4I7GvwoKnwlL2VyM8Q4tyonIKOML22REhflzwe2um3rPYJB/SibiPFCwjc +fdbLrTLT/YOUngbKoVrX3aOiUyHtuDgHpAthiik= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by sourceware.org (Postfix) with ESMTPS id 086D33858437 for ; Wed, 2 Feb 2022 00:21:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 086D33858437 To: Subject: [PATCH 0/5] A few CRIS port improvements MIME-Version: 1.0 Message-ID: <20220202002121.C1AC220438@pchp3.se.axis.com> Date: Wed, 2 Feb 2022 01:21:21 +0100 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Hans-Peter Nilsson via Gcc-patches From: Hans-Peter Nilsson Reply-To: Hans-Peter Nilsson Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" I'm taking advantage of CRIS being a lesser important target and as such not subject to the constraints of GCC being in stage 4. I'm applying this set of CRIS-specific changes that don't have much expected effect on generated code. 1: cris: Don't default to -mmul-bug-workaround Avoid the workaround having a sort-of pseudorandom effect on observability of code-quality changes. 2: cris: For expanded movsi, don't match operands we know will be reloaded A random improvement noticed while looking at the performance impact of the other changes, helping reload to behave better. 3: cris: Remove CRIS v32 ACR artefacts The bigger cleanup; tightening up register classes. A left-over from r11-220 / d0780379c1b6. Unfortunately on its own has a negative effect on performance, when applied in this order. Don't apply without the other patches in this set unless you're actually interested in seeing the fallout. 4: cris: Don't discriminate against ALL_REGS in TARGET_REGISTER_MOVE_COST A workaround for a problem from before IRA, one that didn't fit well with the register class cleanup. 5: cris: Reload using special-regs before general-regs Fixing a flaw exposed by the register class cleanup. gcc/config/cris/constraints.md | 7 +++++- gcc/config/cris/cris.cc | 36 +++++++++++++------------- gcc/config/cris/cris.h | 46 ++++++++++++++++------------------ gcc/config/cris/cris.md | 33 +++++++++++++++++------- gcc/doc/invoke.texi | 2 +- 5 files changed, 70 insertions(+), 54 deletions(-)