[Bug target/122652] RISCV: Crash at -O3 during RTL pass: vsetvl
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Dec 1 15:29:57 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122652
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Robin Dapp <rdapp@gcc.gnu.org>:
https://gcc.gnu.org/g:b2d0abfcd5a3a58e7967eb76bb3508e5ef20d9fa
commit r16-5801-gb2d0abfcd5a3a58e7967eb76bb3508e5ef20d9fa
Author: Robin Dapp <rdapp@ventanamicro.com>
Date: Wed Nov 12 10:17:47 2025 +0100
RISC-V: vsetvl: Add null check for fault-first loop [PR122652].
For a fault-first load we store the first instruction that read its VL
result. The loop to do so uses next_nondebug_insn () which returns
nullptr when we are at the end. Check for that before accessing the
next insn.
PR target/122652
gcc/ChangeLog:
* config/riscv/riscv-vsetvl.cc: Add nullptr check.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/rvv/base/pr122652.c: New test.
More information about the Gcc-bugs
mailing list