diff options
author | Juzhe-Zhong <juzhe.zhong@rivai.ai> | 2023-05-09 10:19:34 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2023-05-10 16:21:44 +0800 |
commit | 69f3914414a303f0e2c8246e08925f90c207846c (patch) | |
tree | 2c04d16b131663ca229f9f694fdb7b53b6b8f709 /gcc/cp/constexpr.cc | |
parent | 3ef0ebf901f6299e76237777e1b72b65c795fac0 (diff) | |
download | gcc-69f3914414a303f0e2c8246e08925f90c207846c.zip gcc-69f3914414a303f0e2c8246e08925f90c207846c.tar.gz gcc-69f3914414a303f0e2c8246e08925f90c207846c.tar.bz2 |
RISC-V: Fix dead loop for user vsetvli intrinsic avl checking [PR109773]
This patch is fix dead loop in vsetvl intrinsic avl checking.
vsetvli->get_def () has vsetvli->get_def () has vsetvli.....
Then it will keep looping in the vsetvli avl checking which is a dead loop.
PR target/109773
gcc/ChangeLog:
* config/riscv/riscv-vsetvl.cc (avl_source_has_vsetvl_p): New function.
(source_equal_p): Fix dead loop in vsetvl avl checking.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/rvv/vsetvl/pr109773-1.c: New test.
* gcc.target/riscv/rvv/vsetvl/pr109773-2.c: New test.
Diffstat (limited to 'gcc/cp/constexpr.cc')
0 files changed, 0 insertions, 0 deletions