aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/riscv/riscv-vector-costs.h
diff options
context:
space:
mode:
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>2024-01-15 18:35:07 +0800
committerLehua Ding <lehua.ding@rivai.ai>2024-01-15 19:02:33 +0800
commite037a0fa040ee1a3500c8523f3ffa713069ac283 (patch)
tree3f1c5cc1508eb7eea203fb4bbf4cfacc5ef858cc /gcc/config/riscv/riscv-vector-costs.h
parentbaa931cc2e007be762ae48f9b1f7898d1d817d50 (diff)
downloadgcc-e037a0fa040ee1a3500c8523f3ffa713069ac283.zip
gcc-e037a0fa040ee1a3500c8523f3ffa713069ac283.tar.gz
gcc-e037a0fa040ee1a3500c8523f3ffa713069ac283.tar.bz2
RISC-V: Remove m_num_vector_iterations[NFC]
Notice the m_num_vector_iterations is not used, remove the redundant codes. Committed. gcc/ChangeLog: * config/riscv/riscv-vector-costs.cc (costs::analyze_loop_vinfo): Remove m_num_vector_iterations. * config/riscv/riscv-vector-costs.h: Ditto.
Diffstat (limited to 'gcc/config/riscv/riscv-vector-costs.h')
-rw-r--r--gcc/config/riscv/riscv-vector-costs.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/config/riscv/riscv-vector-costs.h b/gcc/config/riscv/riscv-vector-costs.h
index 9bf041b..dc0d61f 100644
--- a/gcc/config/riscv/riscv-vector-costs.h
+++ b/gcc/config/riscv/riscv-vector-costs.h
@@ -85,11 +85,6 @@ private:
unsigned HOST_WIDE_INT m_unrolled_vls_niters = 0;
unsigned HOST_WIDE_INT m_unrolled_vls_stmts = 0;
- /* If we're vectorizing a loop that executes a constant number of times,
- this variable gives the number of times that the vector loop would
- iterate, otherwise it is zero. */
- uint64_t m_num_vector_iterations = 0;
-
void analyze_loop_vinfo (loop_vec_info);
void record_potential_vls_unrolling (loop_vec_info);
bool prefer_unrolled_loop () const;