]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Forbidden fuse vlmax vsetvl to DEMAND_NONZERO_AVL vsetvl
authorLehua Ding <lehua.ding@rivai.ai>
Thu, 17 Aug 2023 07:42:51 +0000 (15:42 +0800)
committerLehua Ding <lehua.ding@rivai.ai>
Fri, 18 Aug 2023 02:29:44 +0000 (10:29 +0800)
commitc43916857c6586e65f10713fdc5a65909918a8cc
treee0aa18db834b1854bd9ed71dd31f50d16eb06922
parent1eb2433ff9e85008a289db03ff7eb802d51c42a8
RISC-V: Forbidden fuse vlmax vsetvl to DEMAND_NONZERO_AVL vsetvl

Hi,

This little patch fix the fail testcase
(gcc.target/riscv/rvv/autovec/gather-scatter/strided_load_run-1.c)
after apply this patch
(https://gcc.gnu.org/pipermail/gcc-patches/2023-August/627121.html).
The specific reason is that the vsetvl pass has bug and this patch
forbidden the fuse of this case. This patch needs to be committed
before that patch to work.

Best,
Lehua

gcc/ChangeLog:

* config/riscv/riscv-vsetvl.cc (pass_vsetvl::backward_demand_fusion):
Forbidden.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/autovec/gather-scatter/strided_load_run-1.c:
Address failure due to uninitialized vtype register.
gcc/config/riscv/riscv-vsetvl.cc
gcc/testsuite/gcc.target/riscv/rvv/autovec/gather-scatter/strided_load_run-1.c