]> gcc.gnu.org Git - gcc.git/commit
RISC-V: Bugfix for riscv-vsetvl pass.
authorJu-Zhe Zhong <juzhe.zhong@rivai.ai>
Sun, 16 Jul 2023 00:31:22 +0000 (08:31 +0800)
committerPan Li <pan2.li@intel.com>
Tue, 18 Jul 2023 14:02:33 +0000 (22:02 +0800)
commita1322d76ca1c3c914fb818d9ba3edc291ccfa25e
tree4330fdd1977a3dc30ca14224ee35ca0adb20442b
parenta32d4a34da72087c9f9bdfe3f987b808be814cd7
RISC-V: Bugfix for riscv-vsetvl pass.

This patch comes from part of below change, which locate one bug of rvv
vsetvel pass when auto-vectorization.

https://gcc.gnu.org/pipermail/gcc-patches/2023-July/624523.html

Unforunately, It is not easy to reproduce this bug by intrinsic APIs
but it is worth to backport to GCC 13.

Signed-off-by: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
gcc/ChangeLog:

* config/riscv/riscv-vsetvl.cc (gen_vsetvl_pat): Add vl parameter.
(change_vsetvl_insn): Ditto.
(change_insn): Add validate change as well as assert.
(pass_vsetvl::backward_demand_fusion): Allow forward.
gcc/config/riscv/riscv-vsetvl.cc
This page took 0.058965 seconds and 6 git commands to generate.