Re: [PATCH] vect: Use better fallback costs in layout subpass

2022-09-02 Thread Richard Biener via Gcc-patches
On Fri, 2 Sep 2022, Richard Sandiford wrote: > vect_optimize_slp_pass always treats the starting layout as valid, > to avoid having to "optimise" when every possible choice is invalid. > But it gives the starting layout a high cost if it seems like the > target might reject it, in the hope that th

[PATCH] vect: Use better fallback costs in layout subpass

2022-09-02 Thread Richard Sandiford via Gcc-patches
vect_optimize_slp_pass always treats the starting layout as valid, to avoid having to "optimise" when every possible choice is invalid. But it gives the starting layout a high cost if it seems like the target might reject it, in the hope that this will encourage other (valid) layouts. The testcase