Re: [RFC] vect: Convert cost hooks to classes

2021-10-21 Thread Richard Biener via Gcc-patches
On Thu, 14 Oct 2021, Richard Sandiford wrote: > The current vector cost interface has a quite a bit of redundancy > built in. Each target that defines its own hooks has to replicate > the basic unsigned[3] management. Currently each target also > duplicates the cost adjustment for inner loops. >

[RFC] vect: Convert cost hooks to classes

2021-10-14 Thread Richard Sandiford via Gcc-patches
The current vector cost interface has a quite a bit of redundancy built in. Each target that defines its own hooks has to replicate the basic unsigned[3] management. Currently each target also duplicates the cost adjustment for inner loops. This patch instead defines a vector_costs class for hol