]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Minor fix for max_point
authordemin.han <demin.han@starfivetech.com>
Mon, 1 Apr 2024 08:20:46 +0000 (16:20 +0800)
committerdemin.han <demin.han@starfivetech.com>
Mon, 8 Apr 2024 06:13:42 +0000 (14:13 +0800)
commitaa2ab7b79a87c25d113752401a6026c6823dfe57
treea4804413b4c85b253e2f34e0de879b7ce0d9c443
parentaf3a9807435a114c62f44f9d55456a3d37e0c25b
RISC-V: Minor fix for max_point

The program points start from 1, so max_point should be equal to
length().

Tested on RV64 and no regression.

gcc/ChangeLog:

* config/riscv/riscv-vector-costs.cc: Use length()

Signed-off-by: demin.han <demin.han@starfivetech.com>
gcc/config/riscv/riscv-vector-costs.cc