RISC-V: Fix bugs of available condition.
authorJu-Zhe Zhong <juzhe.zhong@rivai.ai>
Tue, 3 Jan 2023 07:30:30 +0000 (15:30 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Thu, 26 Jan 2023 18:53:01 +0000 (02:53 +0800)
commitcca9c44eca42d71ef20fc00a261616ba66edd089
tree50628e55413bdb5342c000b5c5ecde13c5effd15
parentaef20243b842284587023306e922e483b2401f34
RISC-V: Fix bugs of available condition.

Suppose there are 2 demand infos:

Demand 1: demand TAIL.
Demand 2: not demand TAIL.

If a block is demand 1, we should adjust this block is available both for demand 1 && 2.
However, if a block is demand 2, we should only adjust this block is available for demand 2 only.

gcc/ChangeLog:

* config/riscv/riscv-vsetvl.cc (vector_insn_info::operator>=): Fix available condition.
gcc/config/riscv/riscv-vsetvl.cc