RISC-V: Change VSETVL PASS always call split_all_insns
authorJu-Zhe Zhong <juzhe.zhong@rivai.ai>
Wed, 18 Jan 2023 02:50:14 +0000 (10:50 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Fri, 27 Jan 2023 09:34:35 +0000 (17:34 +0800)
commitca8fb0096713a8477614ef874f16ba5bf16c48bc
tree95acfd781d526f5cf7eed2cf919b0ad8df4ab791
parente3bcf0726207185af88dd3c8fbed35b05cd80ddd
RISC-V: Change VSETVL PASS always call split_all_insns

Since LCM will destroy CFG, we are going to reorder the location of VSETVL PASS
at least before bbro (block-reorder PASS) which is before split3 PASS. We need
to call it in VSETVL PASS to get final RVV instructions patterns.

gcc/ChangeLog:

* config/riscv/riscv-vsetvl.cc (pass_vsetvl::execute): Always call split_all_insns.
gcc/config/riscv/riscv-vsetvl.cc