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

2023-04-19 Thread juzhe.zh...@rivai.ai
All functions should be dropped except "riscv_vector_preferred_simd_mode". I known you take from "rvv-next". However, the implementation of "prefer_simd_mode" in "rvv-next" is incorrect. The most important part of implementing this function is that we should gurantee compiler will not generate u

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

2023-04-18 Thread Kito Cheng via Gcc-patches
> @@ -118,6 +120,41 @@ const_vec_all_same_in_range_p (rtx x, HOST_WIDE_INT > minval, > && IN_RANGE (INTVAL (elt), minval, maxval)); > } > > +/* Return the vlmul field for a specific machine mode. */ > +unsigned int > +riscv_classify_vlmul_field (enum machine_mode mode) This is not imp