aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJu-Zhe Zhong <juzhe.zhong@rivai.ai>2023-01-10 06:47:26 +0800
committerKito Cheng <kito.cheng@sifive.com>2023-01-27 03:10:16 +0800
commitb9b251b7b95c78b485022802908970c598d9f6e1 (patch)
tree2b455d71547ffbec213e54877bc56da4c53fcd07 /gcc
parent00fb7698f0b3ae14d6d472db0f8b64744c84678b (diff)
downloadgcc-b9b251b7b95c78b485022802908970c598d9f6e1.zip
gcc-b9b251b7b95c78b485022802908970c598d9f6e1.tar.gz
gcc-b9b251b7b95c78b485022802908970c598d9f6e1.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/riscv/riscv-vsetvl.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/riscv/riscv-vsetvl.cc b/gcc/config/riscv/riscv-vsetvl.cc
index 9140b18..f9dd7ca 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;