[PATCH] RISC-V: Fix PR109399 VSETVL PASS bug
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Wed, 5 Apr 2023 01:20:47 +0000 (19:20 -0600)
committerJeff Law <jlaw@ventanamicro>
Wed, 5 Apr 2023 01:21:48 +0000 (19:21 -0600)
commitfdc5abbdcfb65d415af6c40230f8f07872e51e49
treefcc1169acc1a182fb0352c96b2d50e85f10921b4
parent4f81edad41caea4ddd269555f88790cec28cc9d9
[PATCH] RISC-V: Fix PR109399 VSETVL PASS bug

        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.
gcc/config/riscv/riscv-vsetvl.cc
gcc/testsuite/gcc.target/riscv/rvv/vsetvl/pr109399.c [new file with mode: 0644]