RE: [PATCH][RFC] Add vector_costs::add_vector_cost vector stmt grouping hook

2025-05-14 Thread Richard Biener
On Wed, 14 May 2025, Tamar Christina wrote: > > -Original Message- > > From: Richard Biener > > Sent: Tuesday, May 13, 2025 12:08 PM > > To: Richard Sandiford > > Cc: gcc-patches@gcc.gnu.org; Tamar Christina > > Subject: Re: [PATCH][RFC] Add vecto

RE: [PATCH][RFC] Add vector_costs::add_vector_cost vector stmt grouping hook

2025-05-13 Thread Tamar Christina
> -Original Message- > From: Richard Biener > Sent: Tuesday, May 13, 2025 12:08 PM > To: Richard Sandiford > Cc: gcc-patches@gcc.gnu.org; Tamar Christina > Subject: Re: [PATCH][RFC] Add vector_costs::add_vector_cost vector stmt > grouping hook > > On Tue, 13

Re: [PATCH][RFC] Add vector_costs::add_vector_cost vector stmt grouping hook

2025-05-13 Thread Richard Biener
On Tue, 13 May 2025, Richard Sandiford wrote: > Richard Biener writes: > > The following refactors the vectorizer vector_costs target API > > to add a new vector_costs::add_vector_cost entry which groups > > all individual sub-stmts we create per "vector stmt", aka SLP > > node. This allows for

Re: [PATCH][RFC] Add vector_costs::add_vector_cost vector stmt grouping hook

2025-05-13 Thread Richard Sandiford
Richard Biener writes: > The following refactors the vectorizer vector_costs target API > to add a new vector_costs::add_vector_cost entry which groups > all individual sub-stmts we create per "vector stmt", aka SLP > node. This allows for the targets to more easily match on > complex cases like

[PATCH][RFC] Add vector_costs::add_vector_cost vector stmt grouping hook

2025-05-13 Thread Richard Biener
The following refactors the vectorizer vector_costs target API to add a new vector_costs::add_vector_cost entry which groups all individual sub-stmts we create per "vector stmt", aka SLP node. This allows for the targets to more easily match on complex cases like emulated gather/scatter or even ju