Committed to GCC 13, thanks Jeff. Pan
-----Original Message----- From: Jeff Law <jeffreya...@gmail.com> Sent: Tuesday, July 18, 2023 9:57 PM To: Li, Pan2 <pan2...@intel.com>; gcc-patches@gcc.gnu.org Cc: juzhe.zh...@rivai.ai; kito.ch...@gmail.com Subject: Re: [PATCH v1|GCC-13] RISC-V: Bugfix for riscv-vsetvl pass. On 7/15/23 20:16, Pan Li via Gcc-patches wrote: > From: Ju-Zhe Zhong <juzhe.zh...@rivai.ai> > > This patch comes from part of below change, which locate one bug of rvv > vsetvel pass when auto-vectorization. > > https://gcc.gnu.org/pipermail/gcc-patches/2023-July/624523.html > > Unforunately, It is not easy to reproduce this bug by intrinsic APIs > but it is worth to backport to GCC 13. > > Signed-off-by: Ju-Zhe Zhong <juzhe.zh...@rivai.ai> > > gcc/ChangeLog: > > * config/riscv/riscv-vsetvl.cc (gen_vsetvl_pat): Add vl parameter. > (change_vsetvl_insn): Ditto. > (change_insn): Add validate change as well as assert. > (pass_vsetvl::backward_demand_fusion): Allow forward. OK for gcc-13. jeff