On 4/4/23 02:46, juzhe.zh...@rivai.ai wrote:
From: Juzhe-Zhong <juzhe.zh...@rivai.ai>

This patch fix bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109399

         PR 109399

gcc/ChangeLog:

         * config/riscv/riscv-vsetvl.cc 
(pass_vsetvl::compute_local_backward_infos): Update user vsetvl in local demand 
fusion.

gcc/testsuite/ChangeLog:

         * gcc.target/riscv/rvv/vsetvl/pr109399.c: New test.
Thanks.  Installed.

I noted that change_vsetvl_insn does not have a function comment. Can you please add one. Perhaps something like this:

/* INSN is either a vector configuration insn, or an insn with a vtype
   that is immediately preceded by a vector configuration insn.  In
   both cases, change the vector configuration insn to utilize the
   vector configuration state in INFO.  */

Reply via email to