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: 50660 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A542E385C409 for ; Wed, 2 Feb 2022 00:21:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A542E385C409 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1643761315; bh=/pMgISmfQKOoip+orgsPz9yW3hMRRosNVxYcGCo1R20=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=cSmTvFyLWMg/Bt5N0L0WN3sp+pkKzc/fFp1KLkM8K3++6aAOSQNbi5doAnulDQiY2 HygYmFowkzRP7v5Wl9KNWLZqn1MbBjjCNj0W94HYRWCoKtJKuhmQPFzyvwoBEl4frq /fba+o+eeualeSETg0TvGgMYQZCsbnWvubnbMDw0= 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+patchwork=sourceware.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(-)