]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Fix vsetvl pass ICE
authorLehua Ding <lehua.ding@rivai.ai>
Wed, 30 Aug 2023 09:48:00 +0000 (17:48 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Mon, 29 Apr 2024 14:00:55 +0000 (22:00 +0800)
commit129b64b0c2766d66d97be68a36f7d72685a9d29e
tree071e6120dd14dc03133bcab2f201622d2d7aeeb3
parent3e1ca512848994950cc0641986b6ec337df5765f
RISC-V: Fix vsetvl pass ICE

This patch fix pr111234 (a vsetvl pass ICE) when fuse a mask any
vlmax vsetvl_vtype_change_only insn with a mu vsetvl insn.

PR target/111234

gcc/ChangeLog:

* config/riscv/riscv-vsetvl.cc (gen_vsetvl_pat): Remove condition.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/vsetvl/pr111234.c: New test.

(cherry picked from commit ac55f9710fe82a4ed8cb132f57303775ce60e5d1)
gcc/config/riscv/riscv-vsetvl.cc
gcc/testsuite/gcc.target/riscv/rvv/vsetvl/pr111234.c [new file with mode: 0644]