From patchwork Tue Oct 24 10:50:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 15806 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1852693vqx; Tue, 24 Oct 2023 03:51:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGfsRXfR1dQ5vOTFPEe4+JZrOQeP1wp8/FRCKpMOmXrJLSrqNjG6yYzkf1/5GEKeS44RJEW X-Received: by 2002:a05:6102:100b:b0:45a:b096:ec81 with SMTP id q11-20020a056102100b00b0045ab096ec81mr798910vsp.21.1698144664979; Tue, 24 Oct 2023 03:51:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698144664; cv=pass; d=google.com; s=arc-20160816; b=wRZNa0NvVXhTUgsupBaj1uV9KWWvY9HsFg3eITerCWUO19ldUXqarXJUFX/PU+0htY HDbnzP/57Ut72Y2Nq+k27GFfPBTcy5+7kEP2eo4BdU5BGSjQ2O0Bb5uAC7yHQhNCSu7z p6jyInK6Qg1veN16uk645fnQOsyFjoFO0SA5R2j1Z8ME8rvyc19ae1AzAUPmUsi+eeLI iqSovT2Xcm2LDf+r1apF4bkK8PfbA1G3aBdctA559Gkp8/Urh+KtUs/k1FhwcvMAvMlF 78q4eA0bpYymbyQwD6idKOtN5QHiqg+3w/vq2iQcrmIwtTWg558QuF+KbAmcjMcZMo7R jkPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:arc-filter :dmarc-filter:delivered-to; bh=XQ2FjjZ2TTLeN2KywAf89of/SQNdh+TSEZ0yiW0VBBw=; fh=WSfZ840Wi6BqtTz8VZjapJ1yCCJ9QRCfxSVxwOS9rLc=; b=oJkruX7+9rhVkbeYn/CK+GQ5ZhMj4xD7Tt9BMYq2aEbN+dXPP/1M5CkT/5AuHe/gfj DndR1vt9MoJMBO5B1KwmB+uJCLfgvMXHt1jXnSBUJWt/dDdwZRCZhGZResh9PNY3oWD4 E93iSfVWN9eGTrSDStoVnbLWSHmumhcrPz8wfGWBWnVMETLkm6WkjldEGholP/Fp+xr4 XPGnRLxdcnBuSjHUveMErU3Uq6qadrERajsxnNae9plbl+TfTmAWhZyPB+92KDaXh1UI 50v7jpxOZGlVZQxsotiHxDb6zi2nT38bXXVH25H72bHI1AFE6RNRGteWV+2P4MfSOtLP z27w== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id dl3-20020ad44e03000000b0066d15724ff0si6832837qvb.326.2023.10.24.03.51.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 03:51:04 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E5C29385C6EF for ; Tue, 24 Oct 2023 10:51:00 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id 83D1F3858CDB for ; Tue, 24 Oct 2023 10:50:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 83D1F3858CDB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 83D1F3858CDB Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698144637; cv=none; b=jKpN3dziQy3Gh5OuemQh895CDDc3tC53OV3l0xTPYfPVD9LQYIdqRdmienNCaSv9fXdN5WNW+hsFATrzSlRrJ3ygisiuuLkA/NOB3CAbOWP4yZpGGLjR2CIcZ/c7Z6QmQPuGvdKLZz+sL2eEDPptUYe2CSOOn5++jQ7vJeIwOUY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698144637; c=relaxed/simple; bh=urEDXuiIRZYkzLpL802Z59b/7I93RFnJD+VSENSa8i4=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=Mb2qQr95bS+AyFB/WIjhz7NnxzFPXypXCffsUhqUARrcSYL6ylCX79+bDz9HuCX9OL05TMh5MItMjLcyvLWhuBXczTlXNdzPqDJnUOvMb74s95bH1GD7DJSLWzpfY3tfWuDkdctfb36750uDhYKHSpvx7mqEJWyfHIAgbQ64IcE= ARC-Authentication-Results: i=1; server2.sourceware.org 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 2B6122F4; Tue, 24 Oct 2023 03:51:08 -0700 (PDT) Received: from e121540-lin.manchester.arm.com (e121540-lin.manchester.arm.com [10.32.110.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 90EA03F64C; Tue, 24 Oct 2023 03:50:26 -0700 (PDT) From: Richard Sandiford To: jlaw@ventanamicro.com, gcc-patches@gcc.gnu.org Cc: Richard Sandiford Subject: [PATCH 0/6] rtl-ssa: Various fixes needed for the late-combine pass Date: Tue, 24 Oct 2023 11:50:00 +0100 Message-Id: <20231024105006.3337671-1-richard.sandiford@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-18.0 required=5.0 tests=BAYES_00, KAM_DMARC_NONE, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780633739867425643 X-GMAIL-MSGID: 1780633739867425643 Testing the late-combine pass showed a depressing number of bugs in areas of RTL-SSA that hadn't been used much until now. Most of them relate to doing things after RA. Tested on aarch64-linux-gnu & x86_64-linux-gnu. OK to install? Richard Richard Sandiford (6): rtl-ssa: Ensure global registers are live on exit rtl-ssa: Create REG_UNUSED notes after all pending changes rtl-ssa: Fix ICE when deleting memory clobbers rtl-ssa: Handle artifical uses of deleted defs rtl-ssa: Calculate dominance frontiers for the exit block rtl-ssa: Handle call clobbers in more places gcc/rtl-ssa/access-utils.h | 27 ++++++----------- gcc/rtl-ssa/accesses.cc | 25 ++++++++++++++++ gcc/rtl-ssa/blocks.cc | 60 ++++++++++++++++++++++++++------------ gcc/rtl-ssa/changes.cc | 58 +++++++++++++++++++++++++++++++----- gcc/rtl-ssa/functions.cc | 2 +- gcc/rtl-ssa/functions.h | 15 ++++++++++ gcc/rtl-ssa/insns.cc | 2 ++ gcc/rtl-ssa/internals.h | 4 +++ gcc/rtl-ssa/member-fns.inl | 9 ++++++ 9 files changed, 158 insertions(+), 44 deletions(-)