@@ -907,8 +907,8 @@ change_insn (function_info *ssa, insn_change change, insn_info *insn,
907
907
] UNSPEC_VPREDICATE)
908
908
(plus:RVVM4DI (reg/v:RVVM4DI 104 v8 [orig:137 op1 ] [137])
909
909
(sign_extend:RVVM4DI (vec_duplicate:RVVM4SI (reg:SI 15 a5
910
- [140])))) (unspec:RVVM4DI [ (const_int 0 [0]) ] UNSPEC_VUNDEF))) "rvv.c":8:12
911
- 2784 {pred_single_widen_addsvnx8di_scalar} (expr_list:REG_EQUIV
910
+ [140])))) (unspec:RVVM4DI [ (const_int 0 [0]) ] UNSPEC_VUNDEF)))
911
+ "rvv.c":8:12 2784 {pred_single_widen_addsvnx8di_scalar} (expr_list:REG_EQUIV
912
912
(mem/c:RVVM4DI (reg:DI 10 a0 [142]) [1 <retval>+0 S[64, 64] A128])
913
913
(expr_list:REG_EQUAL (if_then_else:RVVM4DI (unspec:RVVMF8BI [
914
914
(const_vector:RVVMF8BI repeat [
@@ -2428,12 +2428,12 @@ vector_infos_manager::all_same_ratio_p (sbitmap bitdata) const
2428
2428
sbitmap_iterator sbi;
2429
2429
2430
2430
EXECUTE_IF_SET_IN_BITMAP (bitdata, 0 , bb_index, sbi)
2431
- {
2432
- if (ratio == -1 )
2433
- ratio = vector_exprs[bb_index]->get_ratio ();
2434
- else if (vector_exprs[bb_index]->get_ratio () != ratio)
2435
- return false ;
2436
- }
2431
+ {
2432
+ if (ratio == -1 )
2433
+ ratio = vector_exprs[bb_index]->get_ratio ();
2434
+ else if (vector_exprs[bb_index]->get_ratio () != ratio)
2435
+ return false ;
2436
+ }
2437
2437
return true ;
2438
2438
}
2439
2439
@@ -2473,10 +2473,10 @@ vector_infos_manager::all_same_avl_p (const basic_block cfg_bb,
2473
2473
sbitmap_iterator sbi;
2474
2474
2475
2475
EXECUTE_IF_SET_IN_BITMAP (bitdata, 0 , bb_index, sbi)
2476
- {
2477
- if (vector_exprs[bb_index]->get_avl_info () != avl)
2478
- return false ;
2479
- }
2476
+ {
2477
+ if (vector_exprs[bb_index]->get_avl_info () != avl)
2478
+ return false ;
2479
+ }
2480
2480
return true ;
2481
2481
}
2482
2482
@@ -3892,7 +3892,7 @@ pass_vsetvl::refine_vsetvls (void) const
3892
3892
basic_block cfg_bb;
3893
3893
FOR_EACH_BB_FN (cfg_bb, cfun)
3894
3894
{
3895
- auto info = get_block_info (cfg_bb).local_dem ;
3895
+ auto info = get_block_info (cfg_bb).local_dem ;
3896
3896
insn_info *insn = info.get_insn ();
3897
3897
if (!info.valid_p ())
3898
3898
continue ;
@@ -3938,8 +3938,7 @@ pass_vsetvl::cleanup_vsetvls ()
3938
3938
basic_block cfg_bb;
3939
3939
FOR_EACH_BB_FN (cfg_bb, cfun)
3940
3940
{
3941
- auto &info
3942
- = get_block_info (cfg_bb).reaching_out ;
3941
+ auto &info = get_block_info (cfg_bb).reaching_out ;
3943
3942
gcc_assert (m_vector_manager->expr_set_num (
3944
3943
m_vector_manager->vector_del [cfg_bb->index ])
3945
3944
<= 1 );
@@ -3951,9 +3950,7 @@ pass_vsetvl::cleanup_vsetvls ()
3951
3950
info.set_unknown ();
3952
3951
else
3953
3952
{
3954
- const auto dem
3955
- = get_block_info (cfg_bb)
3956
- .local_dem ;
3953
+ const auto dem = get_block_info (cfg_bb).local_dem ;
3957
3954
gcc_assert (dem == *m_vector_manager->vector_exprs [i]);
3958
3955
insn_info *insn = dem.get_insn ();
3959
3956
gcc_assert (insn && insn->rtl ());
@@ -4020,8 +4017,7 @@ pass_vsetvl::commit_vsetvls (void)
4020
4017
for (const bb_info *bb : crtl->ssa ->bbs ())
4021
4018
{
4022
4019
basic_block cfg_bb = bb->cfg_bb ();
4023
- const auto reaching_out
4024
- = get_block_info (cfg_bb).reaching_out ;
4020
+ const auto reaching_out = get_block_info (cfg_bb).reaching_out ;
4025
4021
if (!reaching_out.dirty_p ())
4026
4022
continue ;
4027
4023
@@ -4035,14 +4031,14 @@ pass_vsetvl::commit_vsetvls (void)
4035
4031
sbitmap avin = m_vector_manager->vector_avin [cfg_bb->index ];
4036
4032
bool available_p = false ;
4037
4033
EXECUTE_IF_SET_IN_BITMAP (avin, 0 , bb_index, sbi)
4038
- {
4039
- if (m_vector_manager->vector_exprs [bb_index]->available_p (
4040
- reaching_out))
4041
- {
4042
- available_p = true ;
4043
- break ;
4044
- }
4045
- }
4034
+ {
4035
+ if (m_vector_manager->vector_exprs [bb_index]->available_p (
4036
+ reaching_out))
4037
+ {
4038
+ available_p = true ;
4039
+ break ;
4040
+ }
4041
+ }
4046
4042
if (available_p)
4047
4043
continue ;
4048
4044
}
@@ -4263,7 +4259,8 @@ pass_vsetvl::local_eliminate_vsetvl_insn (const bb_info *bb) const
4263
4259
4264
4260
/* Local AVL compatibility checking is simpler than global, we only
4265
4261
need to check the REGNO is same. */
4266
- if (prev_dem.valid_or_dirty_p () && prev_dem.skip_avl_compatible_p (curr_dem)
4262
+ if (prev_dem.valid_or_dirty_p ()
4263
+ && prev_dem.skip_avl_compatible_p (curr_dem)
4267
4264
&& local_avl_compatible_p (prev_avl, curr_avl))
4268
4265
{
4269
4266
/* curr_dem and prev_dem is compatible! */
@@ -4365,9 +4362,7 @@ pass_vsetvl::global_eliminate_vsetvl_insn (const bb_info *bb) const
4365
4362
vsetvl_rinsn = get_vsetvl_at_end (bb, &dem);
4366
4363
4367
4364
/* No need to optimize if block doesn't have vsetvl instructions. */
4368
- if (!dem.valid_or_dirty_p ()
4369
- || !vsetvl_rinsn
4370
- || !dem.get_avl_source ()
4365
+ if (!dem.valid_or_dirty_p () || !vsetvl_rinsn || !dem.get_avl_source ()
4371
4366
|| !dem.has_avl_reg ())
4372
4367
return false ;
4373
4368
@@ -4655,8 +4650,7 @@ pass_vsetvl::compute_probabilities (void)
4655
4650
for (const bb_info *bb : crtl->ssa ->bbs ())
4656
4651
{
4657
4652
basic_block cfg_bb = bb->cfg_bb ();
4658
- auto &curr_prob
4659
- = get_block_info (cfg_bb).probability ;
4653
+ auto &curr_prob = get_block_info (cfg_bb).probability ;
4660
4654
4661
4655
/* GCC assume entry block (bb 0) are always so
4662
4656
executed so set its probability as "always". */
@@ -4669,8 +4663,7 @@ pass_vsetvl::compute_probabilities (void)
4669
4663
gcc_assert (curr_prob.initialized_p ());
4670
4664
FOR_EACH_EDGE (e, ei, cfg_bb->succs )
4671
4665
{
4672
- auto &new_prob
4673
- = get_block_info (e->dest ).probability ;
4666
+ auto &new_prob = get_block_info (e->dest ).probability ;
4674
4667
if (!new_prob.initialized_p ())
4675
4668
new_prob = curr_prob * e->probability ;
4676
4669
else if (new_prob == profile_probability::always ())
0 commit comments