Re: [PATCH] Rewrite memset expanders with vec_duplicate

2021-07-16 Thread H.J. Lu via Gcc-patches
On Fri, Jul 16, 2021 at 6:24 AM Richard Sandiford wrote: > > "H.J. Lu via Gcc-patches" writes: > > On Fri, Jul 16, 2021 at 4:38 AM Richard Sandiford > > wrote: > >> > >> "H.J. Lu via Gcc-patches" writes: > >> > 1. Rewrite builtin_memset_read_str and builtin_memset_gen_str with > >> > vec_duplic

Re: [PATCH] Rewrite memset expanders with vec_duplicate

2021-07-16 Thread Richard Sandiford via Gcc-patches
"H.J. Lu via Gcc-patches" writes: > On Fri, Jul 16, 2021 at 4:38 AM Richard Sandiford > wrote: >> >> "H.J. Lu via Gcc-patches" writes: >> > 1. Rewrite builtin_memset_read_str and builtin_memset_gen_str with >> > vec_duplicate_optab to duplicate QI value to TI/OI/XI value. >> > 2. Add TARGET_GEN_

Re: [PATCH] Rewrite memset expanders with vec_duplicate

2021-07-16 Thread H.J. Lu via Gcc-patches
On Fri, Jul 16, 2021 at 4:38 AM Richard Sandiford wrote: > > "H.J. Lu via Gcc-patches" writes: > > 1. Rewrite builtin_memset_read_str and builtin_memset_gen_str with > > vec_duplicate_optab to duplicate QI value to TI/OI/XI value. > > 2. Add TARGET_GEN_MEMSET_SCRATCH_RTX to allow the backend to u

Re: [PATCH] Rewrite memset expanders with vec_duplicate

2021-07-16 Thread Richard Sandiford via Gcc-patches
"H.J. Lu via Gcc-patches" writes: > 1. Rewrite builtin_memset_read_str and builtin_memset_gen_str with > vec_duplicate_optab to duplicate QI value to TI/OI/XI value. > 2. Add TARGET_GEN_MEMSET_SCRATCH_RTX to allow the backend to use a hard > scratch register to avoid stack realignment when expandi