RE: Prefer open-coding vector integer division

2018-06-08 Thread Matthew Fortune
Richard Sandiford writes: > vect_recog_divmod_pattern currently bails out if the target has > native support for integer division, but I think in practice > it's always going to be better to open-code it anyway, just as > we usually open-code scalar divisions by constants. > > I think the only cu

Re: Prefer open-coding vector integer division

2018-05-25 Thread Richard Biener
On Thu, May 24, 2018 at 2:52 PM Richard Sandiford < richard.sandif...@linaro.org> wrote: > Richard Biener writes: > > On Thu, May 24, 2018 at 10:31 AM Jakub Jelinek wrote: > >> On Thu, May 24, 2018 at 09:21:35AM +0100, Richard Sandiford wrote: > >> > vect_recog_divmod_pattern currently bails out

Re: Prefer open-coding vector integer division

2018-05-24 Thread Richard Sandiford
Richard Biener writes: > On Thu, May 24, 2018 at 10:31 AM Jakub Jelinek wrote: >> On Thu, May 24, 2018 at 09:21:35AM +0100, Richard Sandiford wrote: >> > vect_recog_divmod_pattern currently bails out if the target has >> > native support for integer division, but I think in practice >> > it's alw

Re: Prefer open-coding vector integer division

2018-05-24 Thread Richard Biener
On Thu, May 24, 2018 at 10:31 AM Jakub Jelinek wrote: > On Thu, May 24, 2018 at 09:21:35AM +0100, Richard Sandiford wrote: > > vect_recog_divmod_pattern currently bails out if the target has > > native support for integer division, but I think in practice > > it's always going to be better to ope

Re: Prefer open-coding vector integer division

2018-05-24 Thread Jakub Jelinek
On Thu, May 24, 2018 at 09:21:35AM +0100, Richard Sandiford wrote: > vect_recog_divmod_pattern currently bails out if the target has > native support for integer division, but I think in practice > it's always going to be better to open-code it anyway, just as > we usually open-code scalar division