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: =?utf-8?b?6ZKf5bGF5ZOy?= X-Patchwork-Id: 1727911 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NxVhV5BKfz23gM for ; Wed, 18 Jan 2023 13:54:02 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A6DC43858416 for ; Wed, 18 Jan 2023 02:54:00 +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+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" 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