From patchwork Wed Jan 18 02:53:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "juzhe.zhong@rivai.ai" X-Patchwork-Id: 44935 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2108260wrn; Tue, 17 Jan 2023 18:54:16 -0800 (PST) X-Google-Smtp-Source: AMrXdXv9e/fnNi+7cO5h+SGtLFyvI8dHj1Z+OYAInE0i+v6x2YRRNu1kACOLg0fWIlhyUFEfcgpd X-Received: by 2002:a17:906:2c55:b0:86b:d25:450f with SMTP id f21-20020a1709062c5500b0086b0d25450fmr5355245ejh.25.1674010456358; Tue, 17 Jan 2023 18:54:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674010456; cv=none; d=google.com; s=arc-20160816; b=vz4mXKHbrg4nfo1LArJ1GD7gT9Su9o+V6CBvMhbOHw4W9NEdZ6kev5Z3uEPhqPeCZr S0Vlk+kivtYG2ZTzSYHs1s+vtlJCK6kffWAhUzfRozSWEzDxfDj+51mnaK+sTDfrcLeB LupfofbAax8TcJEC1xj9NuFUkMm34ADtDLhMVtTvD3oEo9Z/WbEGfBVlArd816vxwjnH bt6HvaDecacKWn0/ruXc8fiq8J4hQEorVFYafVhRhQFfdySCNW18ZCnilNjWjbBunq9f paiBViVDfVP901DA7YESlIZQZPrW0gYeuZ5r18VATqgljJsmJxPYlyv4T58a77DH3bxH FVFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:feedback-id :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dmarc-filter:delivered-to; bh=84hHzO+XNKXT+DvOnp8oyBIWZF84lrgLvJWofABERZE=; b=f8Ygdey9oRegkb/Ix8WGXyvlwN+3EsnJ8pOcdeCQIUjyxaO89bF389SLyTsCVXeLPS XNQJfC5y31SVkfULmEs2QYTLracu54OLPh38SZ8GUTE0adF/484AtKRqRnwEZiBaQY4d KEm4Vecb3i9229oC4OwAriwkHpQAocsFR37jgTbpI5n+FCSOrawMMrcRLDpCaXfIJI3e nlZGwk+YZr97tFRkocNMvfQzyFVBnOpt7BjaOOMXY/qkZDdqhoomlB2z0Yj+FYKlA4tV osRxnKoDGW2uc5TVKwiajsJnqSMzuou6tDW6ut+YWu1UeL8UoQOtJxQhXmcGZAVaGbbp E0KA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id sh12-20020a1709076e8c00b0087329ff5952si3392871ejc.219.2023.01.17.18.54.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 18:54:16 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 91E7F3858032 for ; Wed, 18 Jan 2023 02:54:12 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbguseast3.qq.com (smtpbguseast3.qq.com [54.243.244.52]) by sourceware.org (Postfix) with ESMTPS id E3BCC3858D28 for ; Wed, 18 Jan 2023 02:53:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E3BCC3858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivai.ai Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivai.ai X-QQ-mid: bizesmtp73t1674010423twn7sgy6 Received: from rios-cad5.localdomain ( [58.60.1.11]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 18 Jan 2023 10:53:42 +0800 (CST) X-QQ-SSF: 01400000000000E0L000000A0000000 X-QQ-FEAT: 3M0okmaRx3g8dLfndcEhxdOjrzQ6s7z/xh76PB1TsKuE7atic18WsKZ3zZg/L DAkPnH4MsvzJIe8k8/STs7/X/QkoCCdJKnM3lrNAum/SvOXC8zwTs3d/SSoH7nVkQ5Nzm5N srRQRLd/WKMPQIr9VwgysODqEQpfrBqlCeDeha5f7DhtBDmzsrXmMFfLBFv/qG+9UnYDg33 WGeQIW7etL8oRDb8bCqPiLWEIrF2F1oojO2lD2aFJiBuD/QgjuTlP1QyZ98tgG74P2tuv1Y dQQItlKHFqjRJHWQmpDh3MdWnYc/xcvVWXUbwXLMrnivQOL+iUXLHIBhKLTWSB7VARGsB1/ 45ZVAUAWgqdrPNfQUzjeS/ebbiUTkupx5qAOxW4lKG+0tTS16LIdqR81sR+VRwtgWpR8I2M IZP4RL45KvA= X-QQ-GoodBg: 2 From: juzhe.zhong@rivai.ai To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, palmer@dabbelt.com, Ju-Zhe Zhong Subject: [PATCH] RISC-V: Remove DCE in VSETVL PASS Date: Wed, 18 Jan 2023 10:53:41 +0800 Message-Id: <20230118025341.66033-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.3 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvr:qybglogicsvr7 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham 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.29 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 Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755327188250311394?= X-GMAIL-MSGID: =?utf-8?q?1755327188250311394?= From: Ju-Zhe Zhong gcc/ChangeLog: * config/riscv/riscv-vsetvl.cc (pass_vsetvl::done): Remove DCE. * config/riscv/t-riscv: Ditto. --- gcc/config/riscv/riscv-vsetvl.cc | 2 -- gcc/config/riscv/t-riscv | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/gcc/config/riscv/riscv-vsetvl.cc b/gcc/config/riscv/riscv-vsetvl.cc index d494369a603..c2a8b44584d 100644 --- a/gcc/config/riscv/riscv-vsetvl.cc +++ b/gcc/config/riscv/riscv-vsetvl.cc @@ -87,7 +87,6 @@ along with GCC; see the file COPYING3. If not see #include "predict.h" #include "profile-count.h" #include "riscv-vsetvl.h" -#include "dce.h" using namespace rtl_ssa; using namespace riscv_vector; @@ -2996,7 +2995,6 @@ pass_vsetvl::done (void) cleanup_cfg (0); delete crtl->ssa; crtl->ssa = nullptr; - run_fast_dce (); } m_vector_manager->release (); delete m_vector_manager; diff --git a/gcc/config/riscv/t-riscv b/gcc/config/riscv/t-riscv index c95f4aff358..d30e0235356 100644 --- a/gcc/config/riscv/t-riscv +++ b/gcc/config/riscv/t-riscv @@ -54,7 +54,7 @@ riscv-c.o: $(srcdir)/config/riscv/riscv-c.cc $(CONFIG_H) $(SYSTEM_H) \ riscv-vsetvl.o: $(srcdir)/config/riscv/riscv-vsetvl.cc \ $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(REGS_H) \ $(TARGET_H) tree-pass.h df.h rtl-ssa.h cfgcleanup.h insn-config.h \ - insn-attr.h insn-opinit.h tm-constrs.h cfgrtl.h cfganal.h lcm.h dce.h \ + insn-attr.h insn-opinit.h tm-constrs.h cfgrtl.h cfganal.h lcm.h \ predict.h profile-count.h $(srcdir)/config/riscv/riscv-vsetvl.h $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ $(srcdir)/config/riscv/riscv-vsetvl.cc