Re: [PATCH v5 03/10] RISC-V:autovec: Add auto-vectorization support functions

2023-05-06 Thread Jeff Law via Gcc-patches
On 5/3/23 11:31, Michael Collison wrote: HI Kito, I see there have been many comments on the "riscv_vector_preferred_simd_mode" hook, is there an updated version? I think there's a version on the trunk now. So if there's updates to do, let's do them relative to what's on the trunk. Jeff

Re: [PATCH v5 03/10] RISC-V:autovec: Add auto-vectorization support functions

2023-05-03 Thread Michael Collison
HI Kito, I see there have been many comments on the "riscv_vector_preferred_simd_mode" hook, is there an updated version? On 5/3/23 06:53, Kito Cheng wrote: @@ -176,6 +178,46 @@ calculate_ratio (unsigned int sew, enum vlmul_type vlmul) return ratio; } +/* Implement TARGET_VECTORIZE_PRE

Re: [PATCH v5 03/10] RISC-V:autovec: Add auto-vectorization support functions

2023-05-03 Thread Kito Cheng via Gcc-patches
> @@ -176,6 +178,46 @@ calculate_ratio (unsigned int sew, enum vlmul_type vlmul) >return ratio; > } > > +/* Implement TARGET_VECTORIZE_PREFERRED_SIMD_MODE for RVV. */ > + > +machine_mode > +riscv_vector_preferred_simd_mode (scalar_mode mode) JuZhe's patch[1] has been implemented and his vers

Re: [PATCH v5 03/10] RISC-V:autovec: Add auto-vectorization support functions

2023-04-28 Thread Jeff Law via Gcc-patches
On 4/26/23 15:45, Michael Collison wrote: 2023-04-24 Michael Collison Juzhe Zhong * config/riscv/riscv-v.cc (riscv_vector_preferred_simd_mode): New function. (get_mask_policy_no_pred): Ditto. (get_tail_policy_no_pred): Ditto. (riscv_vec

[PATCH v5 03/10] RISC-V:autovec: Add auto-vectorization support functions

2023-04-26 Thread Michael Collison
2023-04-24 Michael Collison Juzhe Zhong * config/riscv/riscv-v.cc (riscv_vector_preferred_simd_mode): New function. (get_mask_policy_no_pred): Ditto. (get_tail_policy_no_pred): Ditto. (riscv_vector_mask_mode_p): Ditto. (riscv_vector_