vect: Remove vec_outside/inside_cost fields
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 10 Nov 2021 12:31:00 +0000 (12:31 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Wed, 10 Nov 2021 12:31:00 +0000 (12:31 +0000)
commit772d76acb5aead98eb3c47a78363d867287d5e77
tree7e869ef49d54c0c480c4f5e23e192d7ac830fff2
parent4725f62789f25b17967695203d7ee821221e2dd6
vect: Remove vec_outside/inside_cost fields

The vector costs now use a common base class instead of being
completely abstract.  This means that there's no longer a
need to record the inside and outside costs separately.

gcc/
* tree-vectorizer.h (_loop_vec_info): Remove vec_outside_cost
and vec_inside_cost.
(vector_costs::outside_cost): New function.
* tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Update
after above.
(vect_estimate_min_profitable_iters): Likewise.
(vect_better_loop_vinfo_p): Get the inside and outside costs
from the loop_vec_infos' vector_costs.
gcc/tree-vect-loop.c
gcc/tree-vectorizer.h