Committed, thanks Jeff. Pan
-----Original Message----- From: Gcc-patches <[email protected]> On Behalf Of Jeff Law via Gcc-patches Sent: Friday, June 2, 2023 2:49 AM To: [email protected]; [email protected] Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected] Subject: Re: [PATCH V2] RISC-V: Support RVV permutation auto-vectorization On 5/31/23 20:36, [email protected] wrote: > From: Juzhe-Zhong <[email protected]> > > This patch supports vector permutation for VLS only by vec_perm pattern. > We will support TARGET_VECTORIZE_VEC_PERM_CONST to support VLA > permutation in the future. > > Fixed following comments from Robin. > Ok for trunk? > > gcc/ChangeLog: > > * config/riscv/autovec.md (vec_perm<mode>): New pattern. > * config/riscv/predicates.md (vector_perm_operand): New predicate. > * config/riscv/riscv-protos.h (enum insn_type): New enum. > (expand_vec_perm): New function. > * config/riscv/riscv-v.cc (const_vec_all_in_range_p): Ditto. > (gen_const_vector_dup): Ditto. > (emit_vlmax_gather_insn): Ditto. > (emit_vlmax_masked_gather_mu_insn): Ditto. > (expand_vec_perm): Ditto. OK. jeff
