Re: [PATCH] vect: Move vector costs to loop_vec_info

2021-11-08 Thread Richard Biener via Gcc-patches
On Mon, Nov 8, 2021 at 11:59 AM Richard Sandiford via Gcc-patches wrote: > > target_cost_data is in vec_info but is really specific to > loop_vec_info. This patch moves it there and renames it to > vector_costs, to distinguish it from scalar target costs. > > Tested on aarch64-linux-gnu and x86_6

[PATCH] vect: Move vector costs to loop_vec_info

2021-11-08 Thread Richard Sandiford via Gcc-patches
target_cost_data is in vec_info but is really specific to loop_vec_info. This patch moves it there and renames it to vector_costs, to distinguish it from scalar target costs. Tested on aarch64-linux-gnu and x86_64-linux-gnu. OK to install? Richard gcc/ * tree-vectorizer.h (vec_info::t