Re: [PATCH v4] Add QI vector mode support to by-pieces for memset

2021-07-30 Thread H.J. Lu via Gcc-patches
On Fri, Jul 30, 2021 at 2:06 AM Richard Sandiford wrote: > > "H.J. Lu via Gcc-patches" writes: > > On Mon, Jul 26, 2021 at 2:53 PM Richard Sandiford > > wrote: > >> > >> "H.J. Lu via Gcc-patches" writes: > >> > On Mon, Jul 26, 2021 at 11:42 AM Richard Sandiford > >> > wrote: > >> >> > >> >> "H

Re: [PATCH v4] Add QI vector mode support to by-pieces for memset

2021-07-30 Thread H.J. Lu via Gcc-patches
On Fri, Jul 30, 2021 at 2:05 AM Richard Sandiford wrote: > > "H.J. Lu" writes: > > On Tue, Jul 27, 2021 at 8:31 AM H.J. Lu wrote: > >> > >> On Mon, Jul 26, 2021 at 4:19 PM H.J. Lu wrote: > >> > > >> > On Mon, Jul 26, 2021 at 3:56 PM H.J. Lu wrote: > >> > > > >> > > On Mon, Jul 26, 2021 at 2:53

Re: [PATCH v4] Add QI vector mode support to by-pieces for memset

2021-07-30 Thread Richard Sandiford via Gcc-patches
"H.J. Lu via Gcc-patches" writes: > On Mon, Jul 26, 2021 at 2:53 PM Richard Sandiford > wrote: >> >> "H.J. Lu via Gcc-patches" writes: >> > On Mon, Jul 26, 2021 at 11:42 AM Richard Sandiford >> > wrote: >> >> >> >> "H.J. Lu via Gcc-patches" writes: >> >> > +to avoid stack realignment when expa

Re: [PATCH v4] Add QI vector mode support to by-pieces for memset

2021-07-30 Thread Richard Sandiford via Gcc-patches
"H.J. Lu" writes: > On Tue, Jul 27, 2021 at 8:31 AM H.J. Lu wrote: >> >> On Mon, Jul 26, 2021 at 4:19 PM H.J. Lu wrote: >> > >> > On Mon, Jul 26, 2021 at 3:56 PM H.J. Lu wrote: >> > > >> > > On Mon, Jul 26, 2021 at 2:53 PM Richard Sandiford >> > > wrote: >> > > > >> > > > "H.J. Lu via Gcc-patc

Re: [PATCH v4] Add QI vector mode support to by-pieces for memset

2021-07-27 Thread H.J. Lu via Gcc-patches
On Tue, Jul 27, 2021 at 8:31 AM H.J. Lu wrote: > > On Mon, Jul 26, 2021 at 4:19 PM H.J. Lu wrote: > > > > On Mon, Jul 26, 2021 at 3:56 PM H.J. Lu wrote: > > > > > > On Mon, Jul 26, 2021 at 2:53 PM Richard Sandiford > > > wrote: > > > > > > > > "H.J. Lu via Gcc-patches" writes: > > > > > On Mon

Re: [PATCH v4] Add QI vector mode support to by-pieces for memset

2021-07-27 Thread H.J. Lu via Gcc-patches
On Mon, Jul 26, 2021 at 4:19 PM H.J. Lu wrote: > > On Mon, Jul 26, 2021 at 3:56 PM H.J. Lu wrote: > > > > On Mon, Jul 26, 2021 at 2:53 PM Richard Sandiford > > wrote: > > > > > > "H.J. Lu via Gcc-patches" writes: > > > > On Mon, Jul 26, 2021 at 11:42 AM Richard Sandiford > > > > wrote: > > > >

Re: [PATCH v4] Add QI vector mode support to by-pieces for memset

2021-07-26 Thread H.J. Lu via Gcc-patches
On Mon, Jul 26, 2021 at 3:56 PM H.J. Lu wrote: > > On Mon, Jul 26, 2021 at 2:53 PM Richard Sandiford > wrote: > > > > "H.J. Lu via Gcc-patches" writes: > > > On Mon, Jul 26, 2021 at 11:42 AM Richard Sandiford > > > wrote: > > >> > > >> "H.J. Lu via Gcc-patches" writes: > > >> > +to avoid stack

Re: [PATCH v4] Add QI vector mode support to by-pieces for memset

2021-07-26 Thread H.J. Lu via Gcc-patches
On Mon, Jul 26, 2021 at 2:53 PM Richard Sandiford wrote: > > "H.J. Lu via Gcc-patches" writes: > > On Mon, Jul 26, 2021 at 11:42 AM Richard Sandiford > > wrote: > >> > >> "H.J. Lu via Gcc-patches" writes: > >> > +to avoid stack realignment when expanding memset. The default is > >> > +@code{ge

Re: [PATCH v4] Add QI vector mode support to by-pieces for memset

2021-07-26 Thread Richard Sandiford via Gcc-patches
"H.J. Lu via Gcc-patches" writes: > On Mon, Jul 26, 2021 at 11:42 AM Richard Sandiford > wrote: >> >> "H.J. Lu via Gcc-patches" writes: >> > +to avoid stack realignment when expanding memset. The default is >> > +@code{gen_reg_rtx}. >> > +@end deftypefn >> > + >> > @deftypefn {Target Hook} uns

Re: [PATCH v4] Add QI vector mode support to by-pieces for memset

2021-07-26 Thread H.J. Lu via Gcc-patches
On Mon, Jul 26, 2021 at 11:42 AM Richard Sandiford wrote: > > "H.J. Lu via Gcc-patches" writes: > > +/* Callback routine for store_by_pieces. Read GET_MODE_BITSIZE (MODE) > > + bytes from constant string DATA + OFFSET and return it as target > > + constant. If PREV isn't nullptr, it has the

Re: [PATCH v4] Add QI vector mode support to by-pieces for memset

2021-07-26 Thread Richard Sandiford via Gcc-patches
"H.J. Lu via Gcc-patches" writes: > +/* Callback routine for store_by_pieces. Read GET_MODE_BITSIZE (MODE) > + bytes from constant string DATA + OFFSET and return it as target > + constant. If PREV isn't nullptr, it has the RTL info from the > + previous iteration. */ > + > +rtx > +builti

[PATCH v4] Add QI vector mode support to by-pieces for memset

2021-07-21 Thread H.J. Lu via Gcc-patches
1. Replace scalar_int_mode with fixed_size_mode in the by-pieces infrastructure to allow non-integer mode. 2. Rename widest_int_mode_for_size to widest_fixed_size_mode_for_size to return QI vector mode for memset. 3. Add op_by_pieces_d::smallest_fixed_size_mode_for_size to return the smallest integ