From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2093) id 858FD3858C62; Thu, 26 Jan 2023 19:12:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 858FD3858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674760361; bh=TnklXqCKJaM3k0TERdjCkGE/k9U6ZZjfIZC4+X6VJUs=; h=From:To:Subject:Date:From; b=F2Oqg846t+uhjESJdweub4Kk/hz5y+aXotn7m9qGK0If7+kAjoc5xXQT6CIQ0qhsh LifxWs4wHz/oA5v0Ohj0corpfmA7eRRN9d1oFKS2g4xryEp9B5b5YsJ8l7vdsxfvn4 68Rf4UCOoq+aCCTrneX7WSeXOauF4l3ZmlK25g0Q= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Kito Cheng To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-5412] RISC-V: Refine codes in backward fusion [NFC] X-Act-Checkin: gcc X-Git-Author: Ju-Zhe Zhong X-Git-Refname: refs/heads/master X-Git-Oldrev: 00fb7698f0b3ae14d6d472db0f8b64744c84678b X-Git-Newrev: b9b251b7b95c78b485022802908970c598d9f6e1 Message-Id: <20230126191241.858FD3858C62@sourceware.org> Date: Thu, 26 Jan 2023 19:12:41 +0000 (GMT) List-Id: https://gcc.gnu.org/g:b9b251b7b95c78b485022802908970c598d9f6e1 commit r13-5412-gb9b251b7b95c78b485022802908970c598d9f6e1 Author: Ju-Zhe Zhong Date: Tue Jan 10 06:47:26 2023 +0800 RISC-V: Refine codes in backward fusion [NFC] This NFC patch is preparing for the following patches. gcc/ChangeLog: * config/riscv/riscv-vsetvl.cc (pass_vsetvl::backward_demand_fusion): Refine codes. Diff: --- gcc/config/riscv/riscv-vsetvl.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/config/riscv/riscv-vsetvl.cc b/gcc/config/riscv/riscv-vsetvl.cc index 9140b1832bf..f9dd7ca81ba 100644 --- a/gcc/config/riscv/riscv-vsetvl.cc +++ b/gcc/config/riscv/riscv-vsetvl.cc @@ -2011,15 +2011,15 @@ pass_vsetvl::backward_demand_fusion (void) for (const bb_info *bb : crtl->ssa->reverse_bbs ()) { basic_block cfg_bb = bb->cfg_bb (); - const auto &prop - = m_vector_manager->vector_block_infos[cfg_bb->index].local_dem; + const auto &curr_block_info + = m_vector_manager->vector_block_infos[cfg_bb->index]; + const auto &prop = curr_block_info.local_dem; /* If there is nothing to propagate, just skip it. */ if (!prop.valid_or_dirty_p ()) continue; - if (!backward_propagate_worthwhile_p ( - cfg_bb, m_vector_manager->vector_block_infos[cfg_bb->index])) + if (!backward_propagate_worthwhile_p (cfg_bb, curr_block_info)) continue; edge e;