]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Disable AVL propagation of slidedown instructions
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Sun, 26 Nov 2023 09:13:55 +0000 (17:13 +0800)
committerPan Li <pan2.li@intel.com>
Sun, 26 Nov 2023 09:15:26 +0000 (17:15 +0800)
commitec84a1e7a18f65858a1b129ff80cb32e64cf151b
treea177b5b3662f0bc85f56be03660e01caa82b0702
parentbd7f16b43e2afe5bd8429479485b5c70cedbdee6
RISC-V: Disable AVL propagation of slidedown instructions

Re-check again RVV ISA, I find that we can't allow AVL propagation not only
for vrgather, but also slidedown instructions.

Committed.

PR target/112599

gcc/ChangeLog:

* config/riscv/riscv-avlprop.cc (avl_can_be_propagated_p): Add slidedown.
(vlmax_ta_p): Ditto.
(pass_avlprop::get_vlmax_ta_preferred_avl): Ditto.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/base/vf_avl-1.c: Adapt test.
* gcc.target/riscv/rvv/autovec/pr112599-3.c: New test.
gcc/config/riscv/riscv-avlprop.cc
gcc/testsuite/gcc.target/riscv/rvv/autovec/pr112599-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/rvv/base/vf_avl-1.c