On 5/28/24 14:55, Patrick O'Neill wrote:
> From: Greg McGary <g...@rivosinc.com>
>
> Add option -m(no-)autovec-segment to enable/disable autovectorizer
> from emitting vector segment load/store instructions. This is useful for
> performance experiments.
>
> gcc/ChangeLog:
> * config/riscv/autovec.md (vec_mask_len_load_lanes,
> vec_mask_len_store_lanes):
> Predicate with TARGET_VECTOR_AUTOVEC_SEGMENT
> * gcc/config/riscv/riscv-opts.h (TARGET_VECTOR_AUTOVEC_SEGMENT): New
> macro.
> * gcc/config/riscv/riscv.opt (-m(no-)autovec-segment): New option.
> * gcc/tree-vect-stmts.cc (gcc/tree-vect-stmts.cc): Prevent
> divide-by-zero.
I think this middle-end change needs to be broken out, even if
eventually merged when committing, with its own test case.
-Vineet