]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Remove redundant check of better_main_loop_than_p in COST model
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Fri, 8 Dec 2023 06:33:22 +0000 (14:33 +0800)
committerLehua Ding <lehua.ding@rivai.ai>
Fri, 8 Dec 2023 06:43:19 +0000 (14:43 +0800)
commitb241d91f1e344a7324f66b216f11b40bbb65cf2e
tree95ce792066dd0409b1b5c6b0245f93aadbde0fca
parent2efe3a7de0107618397264017fb045f237764cc7
RISC-V: Remove redundant check of better_main_loop_than_p in COST model

Since loop vectorizer won't call better_main_loop_than_p if !flag_vect_cost_model.

Committed as it is obvious.

gcc/ChangeLog:

* config/riscv/riscv-vector-costs.cc (costs::better_main_loop_than_p):
Remove redundant check.
gcc/config/riscv/riscv-vector-costs.cc