aarch64: Move cycle estimation into aarch64_vec_op_count
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 12 Nov 2021 17:33:02 +0000 (17:33 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Fri, 12 Nov 2021 17:33:02 +0000 (17:33 +0000)
commita82ffd436193d97b0b47441f540e61001f16a682
treefc39f70b5adab3a23610d73819195714abf1d875
parent1a5288fe3dcaa1eb5398ed28b0765f8dad9a1b2a
aarch64: Move cycle estimation into aarch64_vec_op_count

This patch just moves the main cycle estimation routines
into aarch64_vec_op_count.

gcc/
* config/aarch64/aarch64.c
(aarch64_vec_op_count::rename_cycles_per_iter): New function.
(aarch64_vec_op_count::min_nonpred_cycles_per_iter): Likewise.
(aarch64_vec_op_count::min_pred_cycles_per_iter): Likewise.
(aarch64_vec_op_count::min_cycles_per_iter): Likewise.
(aarch64_vec_op_count::dump): Move earlier in file.  Dump the
above properties too.
(aarch64_estimate_min_cycles_per_iter): Delete.
(adjust_body_cost): Use aarch64_vec_op_count::min_cycles_per_iter
instead of aarch64_estimate_min_cycles_per_iter.  Rely on the dump
routine to print CPI estimates.
(adjust_body_cost_sve): Likewise.  Use the other functions above
instead of doing the work inline.
gcc/config/aarch64/aarch64.c