Re: RFC/A: Add a targetm.vectorize.related_mode hook

2019-10-30 Thread Richard Biener
On Wed, Oct 30, 2019 at 10:43 AM Richard Sandiford wrote: > > The series posted so far now shows how the hook would be used in practice. > Just wanted to follow up on some points here: > > Richard Sandiford writes: > > Richard Biener writes: > >> On Wed, Oct 23, 2019 at 2:12 PM Richard Sandiford

Re: RFC/A: Add a targetm.vectorize.related_mode hook

2019-10-30 Thread Richard Sandiford
The series posted so far now shows how the hook would be used in practice. Just wanted to follow up on some points here: Richard Sandiford writes: > Richard Biener writes: >> On Wed, Oct 23, 2019 at 2:12 PM Richard Sandiford >> wrote: >>> >>> Richard Biener writes: >>> > On Wed, Oct 23, 2019 a

Re: RFC/A: Add a targetm.vectorize.related_mode hook

2019-10-25 Thread Richard Sandiford
Richard Biener writes: > On Wed, Oct 23, 2019 at 2:12 PM Richard Sandiford > wrote: >> >> Richard Biener writes: >> > On Wed, Oct 23, 2019 at 1:51 PM Richard Sandiford >> > wrote: >> >> >> >> Richard Biener writes: >> >> > On Wed, Oct 23, 2019 at 1:00 PM Richard Sandiford >> >> > wrote: >> >>

Re: RFC/A: Add a targetm.vectorize.related_mode hook

2019-10-25 Thread Richard Biener
On Wed, Oct 23, 2019 at 2:12 PM Richard Sandiford wrote: > > Richard Biener writes: > > On Wed, Oct 23, 2019 at 1:51 PM Richard Sandiford > > wrote: > >> > >> Richard Biener writes: > >> > On Wed, Oct 23, 2019 at 1:00 PM Richard Sandiford > >> > wrote: > >> >> > >> >> This patch is the first o

Re: RFC/A: Add a targetm.vectorize.related_mode hook

2019-10-24 Thread H.J. Lu
On Thu, Oct 24, 2019 at 12:56 AM Richard Sandiford wrote: > > "H.J. Lu" writes: > > On Wed, Oct 23, 2019 at 4:51 AM Richard Sandiford > > wrote: > >> > >> Richard Biener writes: > >> > On Wed, Oct 23, 2019 at 1:00 PM Richard Sandiford > >> > wrote: > >> >> > >> >> This patch is the first of a

Re: RFC/A: Add a targetm.vectorize.related_mode hook

2019-10-24 Thread Richard Sandiford
"H.J. Lu" writes: > On Wed, Oct 23, 2019 at 4:51 AM Richard Sandiford > wrote: >> >> Richard Biener writes: >> > On Wed, Oct 23, 2019 at 1:00 PM Richard Sandiford >> > wrote: >> >> >> >> This patch is the first of a series that tries to remove two >> >> assumptions: >> >> >> >> (1) that all vec

Re: RFC/A: Add a targetm.vectorize.related_mode hook

2019-10-23 Thread H.J. Lu
On Wed, Oct 23, 2019 at 4:51 AM Richard Sandiford wrote: > > Richard Biener writes: > > On Wed, Oct 23, 2019 at 1:00 PM Richard Sandiford > > wrote: > >> > >> This patch is the first of a series that tries to remove two > >> assumptions: > >> > >> (1) that all vectors involved in vectorisation m

Re: RFC/A: Add a targetm.vectorize.related_mode hook

2019-10-23 Thread Jim Wilson
On Wed, Oct 23, 2019 at 4:16 AM Richard Biener wrote: > Note I delayed thinking about relaxing the single-vector-size > constraint in the vectorizer until after we're SLP only because > that looked more easily done there. I also remember patches > relaxing this a bit from RISCV folks. Probably n

Re: RFC/A: Add a targetm.vectorize.related_mode hook

2019-10-23 Thread Richard Sandiford
Richard Biener writes: > On Wed, Oct 23, 2019 at 1:51 PM Richard Sandiford > wrote: >> >> Richard Biener writes: >> > On Wed, Oct 23, 2019 at 1:00 PM Richard Sandiford >> > wrote: >> >> >> >> This patch is the first of a series that tries to remove two >> >> assumptions: >> >> >> >> (1) that al

Re: RFC/A: Add a targetm.vectorize.related_mode hook

2019-10-23 Thread Richard Biener
On Wed, Oct 23, 2019 at 1:51 PM Richard Sandiford wrote: > > Richard Biener writes: > > On Wed, Oct 23, 2019 at 1:00 PM Richard Sandiford > > wrote: > >> > >> This patch is the first of a series that tries to remove two > >> assumptions: > >> > >> (1) that all vectors involved in vectorisation m

Re: RFC/A: Add a targetm.vectorize.related_mode hook

2019-10-23 Thread Richard Sandiford
Richard Biener writes: > On Wed, Oct 23, 2019 at 1:00 PM Richard Sandiford > wrote: >> >> This patch is the first of a series that tries to remove two >> assumptions: >> >> (1) that all vectors involved in vectorisation must be the same size >> >> (2) that there is only one vector mode for a give

Re: RFC/A: Add a targetm.vectorize.related_mode hook

2019-10-23 Thread Richard Biener
On Wed, Oct 23, 2019 at 1:00 PM Richard Sandiford wrote: > > This patch is the first of a series that tries to remove two > assumptions: > > (1) that all vectors involved in vectorisation must be the same size > > (2) that there is only one vector mode for a given element mode and > number of

RFC/A: Add a targetm.vectorize.related_mode hook

2019-10-23 Thread Richard Sandiford
This patch is the first of a series that tries to remove two assumptions: (1) that all vectors involved in vectorisation must be the same size (2) that there is only one vector mode for a given element mode and number of elements Relaxing (1) helps with targets that support multiple vector s