From patchwork Mon Oct 23 07:22:52 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: 156694 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1127310vqx; Mon, 23 Oct 2023 00:23:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHFbsxOPcWkR1I75I9olZhiPd20WyCBUY38vvl9+hsEyxfFL4VAxttYmcUg8tcgHIDwGIEE X-Received: by 2002:a05:620a:1429:b0:778:9b93:9717 with SMTP id k9-20020a05620a142900b007789b939717mr8983425qkj.22.1698045810527; Mon, 23 Oct 2023 00:23:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698045810; cv=pass; d=google.com; s=arc-20160816; b=okrzCfLpQv77PvUz80nDIbJ8H4Cy/u6gZOeJwGm7PDA8Cw5j4jeVylFN5Xw6BkPyis VPs366wRvs3z7jB844++rMxbI9MHoVYidB7OiU3WkX3+ZlP/IbHqqGFjuVYmOeZNLHtA /os/3fcXDPjvroPNkOOjmSkvtqfN8Ypqwcxq3mNorLYxqVEPlycvVbzWuC8dgG2UxY/k RIpVE7PEi6WzOxG/6ivnUpVhPlnZKax7/RgRy3KduFXszi4UVHNZxL2qBGD8gyfMhbAi KPMvtuxajQ/rlV4X1PkrgKEJWDRyZJ1Qe3WNQyhPQ6PuC71hb3QZKFP2hmU+20QvaLAQ 1rBA== 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:feedback-id :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:arc-filter:dmarc-filter:delivered-to; bh=sb7gb0vLHN8iRRNvrzE7t22D6NPBSACmBzuZsymziRA=; fh=12MRPJmZ1mgDpHqWoogMKqnaGRGM2b7lcuJroqfjJiw=; b=tZEMeorOALEsKKcJynnmVbafSZVgjP5CZfBjMD1/d7feZhiTFaaembuPiiSh5RHlUr VbfNUqIvi+itAqtFZoBYaotoneG5ZUYYb34xTkcfQJyzQr6Pi98gMBU/0L9pgIAfg4jy yNUPr+0EB8+hs5xlQBUNoapLK2n+bnDB5GHngMt+GF/GTNPbQE6hcnC48sgsJuUcFnma E+h/HCcB5Svjxg9ffzt9Gax79UXfFcWHsYW8s6ZWEBNMkG6hyZZG7KjuBeERYHYvtOd7 fh6AXV7gwrTPlkI6ESl7DWLfP1/9Rvx5hgev3DHoUY8Ymy9JtAjY9lu8S8sgNFIC8MPA sKSg== 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 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id o17-20020ae9f511000000b0076ef2750364si4843747qkg.485.2023.10.23.00.23.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 00:23:30 -0700 (PDT) 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; arc=pass (i=1); 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 4BBEE385840F for ; Mon, 23 Oct 2023 07:23:30 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbgeu1.qq.com (smtpbgeu1.qq.com [52.59.177.22]) by sourceware.org (Postfix) with ESMTPS id A4A6F3858D39 for ; Mon, 23 Oct 2023 07:23:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A4A6F3858D39 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivai.ai Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivai.ai ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A4A6F3858D39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=52.59.177.22 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698045787; cv=none; b=K2dV7kHMOT0tpt8NVPjVMEenRTnMDlj0jKxV/wBvkSISbp+n3iQ0T1mcsu7dRNKmTvHy/sIEbiJWXXdUA6oE3t7CSCbSdHZgddZGv/1kFTyWh/YCALR05rl0tZGjPZAG3JglhuGnsz+YPRMnFvqE6OpaWjYUi+vg3fR5P2ZeIT0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698045787; c=relaxed/simple; bh=AdYR4a+qmAvGyTv1NoTwSnGjxrhuaApmHpkx6aI+a5E=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=Cr3xOBTl8Ka1wJAjl3MC3usCx5RQHtkcFNlwUMpaEQyxM5N8D67SW3LOWmaPxXDm8olMPekwiMA4s2bD3YcgM0+SqTHImLjKWw357h75w5dtQg87LitbgbwNw2Qbba61BywwPScTZu/MJcJGDZ9PwscqJAzb3tyk7ZJXZ8bWUFQ= ARC-Authentication-Results: i=1; server2.sourceware.org X-QQ-mid: bizesmtp64t1698045775tscgqegb Received: from rios-cad121.hadoop.rioslab.org ( [58.60.1.9]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 23 Oct 2023 15:22:53 +0800 (CST) X-QQ-SSF: 01400000000000G0V000000A0000000 X-QQ-FEAT: 90EFqYDyPxDBufI+p3U10HM8SgjoSyJ62X0KG1sfdxyWaXUg9LW+H4K6i3PzC mthNcWDdQiVgMbAsMEEs0IEPzS2eN+HKe3omiujNP39UWU4LmSGjxM5t4Br5fKcsOgMx6iD qOwRcm0y3v4ZNIoiaz/+s0Zslm+L4i36Ba9oB22UvzEci4MOMFHpn8WLSo5aob95DDHISWm DCqdwVWjDJKE9u/T5iJPhWQII6abA/pskYv1bBoTA/mvQUZ/clXmmMRmAWWAucDDMlZFFw9 KY8sB8LkzboUlSnBxL0IyDIqM28NVJdnx1pR/GJ/8vArPUHMXHjBgtX7U9J0hYrK/lDELzy j5ClvhjAL85YIosrE7FM69PNChxEHUGch4k2q/iECyI2PcKqpjew9a/gJdj/stMqlKZmVyH X-QQ-GoodBg: 2 X-BIZMAIL-ID: 10772983548503086793 From: Juzhe-Zhong To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, kito.cheng@sifive.com, jeffreyalaw@gmail.com, rdapp.gcc@gmail.com, Juzhe-Zhong Subject: [Committed] RISC-V: Fix typo[VSETVL PASS] Date: Mon, 23 Oct 2023 15:22:52 +0800 Message-Id: <20231023072252.1716510-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:qybglogicsvrgz:qybglogicsvrgz7a-one-0 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_PASS, TXREP, T_SPF_HELO_TEMPERROR 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.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: 1780530083897280693 X-GMAIL-MSGID: 1780530083897280693 When fixing an issue, I find there is a typo in VSETVL PASS. Change 'use_by' into 'used_by'. Committed it as it is very obvious. gcc/ChangeLog: * config/riscv/riscv-vsetvl.cc (pre_vsetvl::fuse_local_vsetvl_info): Fix typo. (pre_vsetvl::pre_global_vsetvl_info): Ditto. --- gcc/config/riscv/riscv-vsetvl.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/config/riscv/riscv-vsetvl.cc b/gcc/config/riscv/riscv-vsetvl.cc index 5948d7260c2..47b459fddd4 100644 --- a/gcc/config/riscv/riscv-vsetvl.cc +++ b/gcc/config/riscv/riscv-vsetvl.cc @@ -778,7 +778,7 @@ public: bb_info *get_bb () const { return m_bb; } uint8_t get_max_sew () const { return m_max_sew; } insn_info *get_read_vl_insn () const { return m_read_vl_insn; } - bool vl_use_by_non_rvv_insn_p () const { return m_vl_used_by_non_rvv_insn; } + bool vl_used_by_non_rvv_insn_p () const { return m_vl_used_by_non_rvv_insn; } bool has_imm_avl () const { return m_avl && CONST_INT_P (m_avl); } bool has_vlmax_avl () const { return vlmax_avl_p (m_avl); } @@ -1204,7 +1204,7 @@ public: if (get_read_vl_insn ()) fprintf (file, "%sread_vl_insn: insn %u\n", indent, get_read_vl_insn ()->uid ()); - if (vl_use_by_non_rvv_insn_p ()) + if (vl_used_by_non_rvv_insn_p ()) fprintf (file, "%suse_by_non_rvv_insn=true\n", indent); } }; @@ -1486,7 +1486,7 @@ private: if (prev.get_ratio () != next.get_ratio ()) return false; - if (next.has_vl () && next.vl_use_by_non_rvv_insn_p ()) + if (next.has_vl () && next.vl_used_by_non_rvv_insn_p ()) return false; if (vector_config_insn_p (prev.get_insn ()->rtl ()) && next.get_avl_def () @@ -2721,7 +2721,7 @@ pre_vsetvl::fuse_local_vsetvl_info () curr_info.dump (dump_file, " "); fprintf (dump_file, "\n"); } - if (!curr_info.vl_use_by_non_rvv_insn_p () + if (!curr_info.vl_used_by_non_rvv_insn_p () && vsetvl_insn_p (curr_info.get_insn ()->rtl ())) m_delete_list.safe_push (curr_info); @@ -3133,7 +3133,7 @@ pre_vsetvl::pre_global_vsetvl_info () continue; curr_info = block_info.local_infos[0]; } - if (curr_info.valid_p () && !curr_info.vl_use_by_non_rvv_insn_p () + if (curr_info.valid_p () && !curr_info.vl_used_by_non_rvv_insn_p () && preds_has_same_avl_p (curr_info)) curr_info.set_change_vtype_only ();