From patchwork Tue Oct 24 17:58:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 15825 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp2112013vqx; Tue, 24 Oct 2023 10:58:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFGcKYh60kHrhc3+ASk56KpR/xAE54r0vyDiy2H5Z364DJlb/cdeKCDkJBb8SvG51vzCvtH X-Received: by 2002:a05:6871:2312:b0:1e9:a434:58a5 with SMTP id sf18-20020a056871231200b001e9a43458a5mr14083085oab.46.1698170335685; Tue, 24 Oct 2023 10:58:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698170335; cv=pass; d=google.com; s=arc-20160816; b=UaZ0oC/8to6V8k4tq4PhgyznPQ5jht6OrWMFDv3tN/kuXyDnaOL8ipsr45ixrIAUTT G/VcpuimJjZWHxhthD2LRl0YYJhI7XoL4NxmuJqastBhVnB7NOpisrDS7afcWvWzYlL6 aFHVlYjPGwdaAppWbN7aG9H9umnjVBWTXTIJiNn8qW3KfZiIGoV9ERYfGYK050EJF0EX yone0ED0hkrCalKdmECgaL6/aYbmMCik+zlzEDi7zCGD7VaXynRJFKnWH37cgqw2NMth qwuupVZvhk9UEEhIIb0gXxXtX49TQXCHB7kKUpntutkh09OZKRJSeJpUQsHDbPEg0pgO rPAA== 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=lJKNW5703sg6MLtdOt3qSlALJT1k8HTTvPTgYPIOfr4=; fh=WSfZ840Wi6BqtTz8VZjapJ1yCCJ9QRCfxSVxwOS9rLc=; b=n8sXaafrdhw0xC/q22aBcK24rfJWnA8cxBlS8pgO/LHYf0JgnjL7/pq7rrKqnFM5hi 0uKTCR7pUf32apxuGpxxL119M949dL8cOp/PcRqTqonqcvgJjC44TiHITKLmXr86LvAR NZ3SjUwwYbA38j+3DU7Rpvv19flDbBpiqvjNd9Uurt/VLLUvzgjNZIoo6YQr6hf3m4UU jfJQlSENEK8dNfz5GDRWPh4FGONyUOAqzwulO8Ekv4+uzCVWX0V3A2S1UTdd6l/wnkim 1Qrk5aiGj/dCJ4vyTvJvEX6zY1Syz1xdQocXc5TH/blgcWYwqNtG7LNrEjX63nRHG/Ew Yeew== 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 m17-20020ad44d51000000b0065cfea0fee7si7225795qvm.423.2023.10.24.10.58.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 10:58:55 -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 E5C6B385C6FF for ; Tue, 24 Oct 2023 17:58:44 +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 C562E3858CDB for ; Tue, 24 Oct 2023 17:58:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C562E3858CDB 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 C562E3858CDB 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=1698170302; cv=none; b=tjcsCe2Kh+gs2yWHE860IHW62sBn9Ghc43i1EiX5fi8y4icDyr6FqLKc1ElWHw9QWAEwPoTyA2uPJWjk5yGmPOQG/LO7bcA7UMfBkaoNjWD4F4S2Ixw1wjxG2HiNnNdit3MRHZrBqXFBjX+nAJrLeiC0H3MiUtWs8TaIsgb/WGE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698170302; c=relaxed/simple; bh=poBB8NUBjCwOjHXUKBUNgNne9M2e0puO9LzVIBsV4zc=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=wHDpA3/u5UtZe90zRWD+XoSq7rzhNb6sdAc8S3Vz9rd+XEwn13OIRmqbXAtt5apIfgUr8TYwGWLiDv8BHUloWHiAGMapufrDKkr8fqznbmVnKqd2kc+0ttuxMlxiYtH/qmVjO8plh79jUKzQu7E4zr4GBP0OKON2Ihm1+8EsdjE= 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 8CE282F4; Tue, 24 Oct 2023 10:58:57 -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 CB4E13F64C; Tue, 24 Oct 2023 10:58:15 -0700 (PDT) From: Richard Sandiford To: jlaw@ventanamicro.com, gcc-patches@gcc.gnu.org Cc: Richard Sandiford Subject: [PATCH 0/3] rtl-ssa: Various extensions for the late-combine pass Date: Tue, 24 Oct 2023 18:58:02 +0100 Message-Id: <20231024175805.3359331-1-richard.sandiford@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-17.9 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: 1780660657465871914 X-GMAIL-MSGID: 1780660657465871914 This series adds some RTL-SSA enhancements that are needed by the late-combine pass. Tested on aarch64-linux-gnu & x86_64-linux-gnu. OK to install? Richard Richard Sandiford (3): rtl-ssa: Use frequency-weighted insn costs rtl-ssa: Extend make_uses_available rtl-ssa: Add new helper functions gcc/Makefile.in | 1 + gcc/rtl-ssa/access-utils.h | 41 +++++++++++++++ gcc/rtl-ssa/accesses.cc | 100 ++++++++++++++++++++++++++++++++++++- gcc/rtl-ssa/changes.cc | 28 +++++++++-- gcc/rtl-ssa/functions.h | 4 ++ gcc/rtl-ssa/movement.cc | 40 +++++++++++++++ gcc/rtl-ssa/movement.h | 4 ++ 7 files changed, 212 insertions(+), 6 deletions(-) create mode 100644 gcc/rtl-ssa/movement.cc