diff options
author | Juzhe-Zhong <juzhe.zhong@rivai.ai> | 2023-12-08 14:33:22 +0800 |
---|---|---|
committer | Lehua Ding <lehua.ding@rivai.ai> | 2023-12-08 14:43:19 +0800 |
commit | b241d91f1e344a7324f66b216f11b40bbb65cf2e (patch) | |
tree | 95ce792066dd0409b1b5c6b0245f93aadbde0fca | |
parent | 2efe3a7de0107618397264017fb045f237764cc7 (diff) | |
download | gcc-b241d91f1e344a7324f66b216f11b40bbb65cf2e.zip gcc-b241d91f1e344a7324f66b216f11b40bbb65cf2e.tar.gz gcc-b241d91f1e344a7324f66b216f11b40bbb65cf2e.tar.bz2 |
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.
-rw-r--r-- | gcc/config/riscv/riscv-vector-costs.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/config/riscv/riscv-vector-costs.cc b/gcc/config/riscv/riscv-vector-costs.cc index 8036c9c..c062c12 100644 --- a/gcc/config/riscv/riscv-vector-costs.cc +++ b/gcc/config/riscv/riscv-vector-costs.cc @@ -630,9 +630,6 @@ costs::better_main_loop_than_p (const vector_costs *uncast_other) const { auto other = static_cast<const costs *> (uncast_other); - if (!flag_vect_cost_model) - return vector_costs::better_main_loop_than_p (other); - if (riscv_autovec_lmul == RVV_DYNAMIC) { bool post_dom_available_p = dom_info_available_p (CDI_POST_DOMINATORS); |