Re: [PATCH][RFC] Allow the target to request a masked vector epilogue

2025-05-22 Thread Richard Sandiford
Richard Biener writes: > On Mon, 19 May 2025, Richard Sandiford wrote: > >> Richard Biener writes: >>> On Fri, 16 May 2025, Richard Sandiford wrote: > The simple prototype below uses a separate flag from the epilogue > mode, but I wonder how we want to more generally want to handle >

Re: [PATCH][RFC] Allow the target to request a masked vector epilogue

2025-05-20 Thread Richard Biener
On Mon, 19 May 2025, Richard Sandiford wrote: Richard Biener writes: On Fri, 16 May 2025, Richard Sandiford wrote: The simple prototype below uses a separate flag from the epilogue mode, but I wonder how we want to more generally want to handle whether to use masking or not when iterating ove

RE: [PATCH][RFC] Allow the target to request a masked vector epilogue

2025-05-19 Thread Richard Biener
On Mon, 19 May 2025, Tamar Christina wrote: -Original Message- From: Richard Biener Sent: Friday, May 16, 2025 11:35 AM To: gcc-patches@gcc.gnu.org Cc: Richard Sandiford ; Tamar Christina Subject: [PATCH][RFC] Allow the target to request a masked vector epilogue Targets recently got

Re: [PATCH][RFC] Allow the target to request a masked vector epilogue

2025-05-19 Thread Richard Sandiford
Richard Biener writes: > On Fri, 16 May 2025, Richard Sandiford wrote: >> > The simple prototype below uses a separate flag from the epilogue >> > mode, but I wonder how we want to more generally want to handle >> > whether to use masking or not when iterating over modes. Currently >> > we mostly

RE: [PATCH][RFC] Allow the target to request a masked vector epilogue

2025-05-18 Thread Tamar Christina
> -Original Message- > From: Richard Biener > Sent: Friday, May 16, 2025 11:35 AM > To: gcc-patches@gcc.gnu.org > Cc: Richard Sandiford ; Tamar Christina > > Subject: [PATCH][RFC] Allow the target to request a masked vector epilogue > > Targets recently got

Re: [PATCH][RFC] Allow the target to request a masked vector epilogue

2025-05-16 Thread Richard Biener
On Fri, 16 May 2025, Richard Sandiford wrote: > Richard Biener writes: > > Targets recently got the ability to request the vector mode to be > > used for a vector epilogue (or the epilogue of a vector epilogue). The > > following adds the ability for it to indicate the epilogue should use > > lo

Re: [PATCH][RFC] Allow the target to request a masked vector epilogue

2025-05-16 Thread Robin Dapp
I was thinking of adding a vectorization_mode class that would encapsulate the mode and whether to allow masking or alternatively to make the vector_modes array (and the m_suggested_epilogue_mode) a std::pair of mode and mask flag? Without having a very strong opinion (or the full background) on

Re: [PATCH][RFC] Allow the target to request a masked vector epilogue

2025-05-16 Thread Richard Sandiford
Richard Biener writes: > Targets recently got the ability to request the vector mode to be > used for a vector epilogue (or the epilogue of a vector epilogue). The > following adds the ability for it to indicate the epilogue should use > loop masking, irrespective of the --param vect-partial-vect

[PATCH][RFC] Allow the target to request a masked vector epilogue

2025-05-16 Thread Richard Biener
Targets recently got the ability to request the vector mode to be used for a vector epilogue (or the epilogue of a vector epilogue). The following adds the ability for it to indicate the epilogue should use loop masking, irrespective of the --param vect-partial-vector-usage setting. The simple pr