Re: [PATCH] RISC-V: Add local user vsetvl instruction elimination

2023-04-20 Thread Kito Cheng via Gcc-patches
Committed with an extra testcase from PR109547 https://gcc.gnu.org/pipermail/gcc-patches/2023-April/616363.html On Fri, Apr 7, 2023 at 9:34 AM wrote: > > From: Juzhe-Zhong > > This patch is to enhance optimization for auto-vectorization. > > Before this patch: > > Loop: > vsetvl a5,a2... > vset

[PATCH] RISC-V: Add local user vsetvl instruction elimination

2023-04-06 Thread juzhe . zhong
From: Juzhe-Zhong This patch is to enhance optimization for auto-vectorization. Before this patch: Loop: vsetvl a5,a2... vsetvl zero,a5... vle After this patch: Loop: vsetvl a5,a2 vle gcc/ChangeLog: * config/riscv/riscv-vsetvl.cc (local_eliminate_vsetvl_insn): New function.