From patchwork Wed Apr 21 21:32:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Maciej W. Rozycki" X-Patchwork-Id: 1468884 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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@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 ozlabs.org (Postfix) with ESMTPS id 4FQYgh3pCbz9sVq for ; Thu, 22 Apr 2021 07:33:03 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C0710386EC41; Wed, 21 Apr 2021 21:32:58 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::4]) by sourceware.org (Postfix) with ESMTP id A10283857831 for ; Wed, 21 Apr 2021 21:32:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A10283857831 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk Authentication-Results: sourceware.org; spf=none smtp.mailfrom=macro@orcam.me.uk Received: by angie.orcam.me.uk (Postfix, from userid 500) id 4497E92009C; Wed, 21 Apr 2021 23:32:54 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 3F60792009B; Wed, 21 Apr 2021 23:32:54 +0200 (CEST) Date: Wed, 21 Apr 2021 23:32:54 +0200 (CEST) From: "Maciej W. Rozycki" To: gcc-patches@gcc.gnu.org Subject: [PATCH 0/3] VAX backend preparatory updates for switching to LRA Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 X-Spam-Status: No, score=-3488.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_INFOUSMEBIZ, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: , Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" Hi, According to the plan discussed in the context of the recent switch to MODE_CC of the VAX backend I have been looking into switching the backend to LRA as well. It has turned out quite straightforward itself, with just a couple of minor issues triggered with a flip to LRA, one causing a build failure with target libatomic and another causing a C testsuite regression. Also I have come across a piece of dead code which has never ever been used for anything and it is unclear to me what its intended purpose was. I have come up with this small patch series then, bundled together for easier reference although the individual changes are independent from each other. I think 3/3 is worth backporting to GCC 11 at one point, perhaps 11.2, so that it can be easily picked downstream, as it improves code generation with old reload and we may not have another major release still using it. OTOH switching to LRA regresses code generation seriously, by making the indexed and indirect VAX address modes severely underutilised, so while with these changes in place the backend can be switched to LRA with just a trivial to remove the redefinition of TARGET_LRA_P, I think it is not yet the right time to do it. It is not a hard show-stopper though, so while I plan to look into LRA now to figure out what is missing there that the old reload has to satisfy the VAX backend, the switch to LRA can now be made anytime if so required and I am preempted for whatever reason (and nobody else gets to it). Questions, comments, OK to apply? Maciej