Re: Move EXTRACT_LAST_REDUCTION costing to vectorizable_condition

2019-11-21 Thread Richard Biener
On Thu, Nov 21, 2019 at 1:07 PM Richard Sandiford wrote: > > gcc.target/aarch64/sve/clastb_[57].c started failing after the increase > in the cost of vec_to_scalar (r278452). The problem is that we were > double-counting the cost of the CLASTB: once in vect_model_reduction_cost > as a vec_to_scal

Move EXTRACT_LAST_REDUCTION costing to vectorizable_condition

2019-11-21 Thread Richard Sandiford
gcc.target/aarch64/sve/clastb_[57].c started failing after the increase in the cost of vec_to_scalar (r278452). The problem is that we were double-counting the cost of the CLASTB: once in vect_model_reduction_cost as a vec_to_scalar and once in vectorizable_condition as a plain vector_stmt. Based