Re: Re: [PATCH] RISC-V: Enable basic VLS auto-vectorization

2023-07-30 Thread juzhe.zh...@rivai.ai
Address comment V2: https://gcc.gnu.org/pipermail/gcc-patches/2023-July/625799.html juzhe.zh...@rivai.ai From: Kito Cheng Date: 2023-07-31 09:55 To: Juzhe-Zhong CC: gcc-patches; kito.cheng; rdapp.gcc; jeffreyalaw Subject: Re: [PATCH] RISC-V: Enable basic VLS auto-vectorization Hi Juzhe

Re: [PATCH] RISC-V: Enable basic VLS auto-vectorization

2023-07-30 Thread Kito Cheng via Gcc-patches
Hi Juzhe: > * config/riscv/riscv.cc (riscv_estimated_poly_value): Fix incorrect > poly estimation. Is it a necessary change for the VLS autovectorizaion or could it be a separate change??

[PATCH] RISC-V: Enable basic VLS auto-vectorization

2023-07-29 Thread Juzhe-Zhong
Consider this following case: void foo (int8_t *in, int8_t *out, int8_t x) { for (int i = 0; i < 16; i++) in[i] = x; } Compile option: --param=riscv-autovec-preference=scalable -fno-builtin Before this patch: foo: li a5,16 csrra4,vlenb vsetvli a3,zero,e8,m1