Re: [PATCH] x86: Convert CONST_WIDE_INT to broadcast in move expanders

2021-06-04 Thread H.J. Lu via Gcc-patches
On Thu, Jun 3, 2021 at 11:21 PM Uros Bizjak wrote: > > On Fri, Jun 4, 2021 at 12:39 AM H.J. Lu wrote: > > > > On Thu, Jun 3, 2021 at 12:39 AM Uros Bizjak wrote: > > > > > > On Thu, Jun 3, 2021 at 5:49 AM H.J. Lu wrote: > > > > > > > > Update move expanders to convert the CONST_WIDE_INT operand

Re: [PATCH] x86: Convert CONST_WIDE_INT to broadcast in move expanders

2021-06-03 Thread Uros Bizjak via Gcc-patches
On Fri, Jun 4, 2021 at 12:39 AM H.J. Lu wrote: > > On Thu, Jun 3, 2021 at 12:39 AM Uros Bizjak wrote: > > > > On Thu, Jun 3, 2021 at 5:49 AM H.J. Lu wrote: > > > > > > Update move expanders to convert the CONST_WIDE_INT operand to vector > > > broadcast from a byte with AVX2. Add ix86_gen_scrat

Re: [PATCH] x86: Convert CONST_WIDE_INT to broadcast in move expanders

2021-06-03 Thread H.J. Lu via Gcc-patches
On Thu, Jun 3, 2021 at 12:39 AM Uros Bizjak wrote: > > On Thu, Jun 3, 2021 at 5:49 AM H.J. Lu wrote: > > > > Update move expanders to convert the CONST_WIDE_INT operand to vector > > broadcast from a byte with AVX2. Add ix86_gen_scratch_sse_rtx to > > return a scratch SSE register which won't in

Re: [PATCH] x86: Convert CONST_WIDE_INT to broadcast in move expanders

2021-06-03 Thread Uros Bizjak via Gcc-patches
On Thu, Jun 3, 2021 at 5:49 AM H.J. Lu wrote: > > Update move expanders to convert the CONST_WIDE_INT operand to vector > broadcast from a byte with AVX2. Add ix86_gen_scratch_sse_rtx to > return a scratch SSE register which won't increase stack alignment > requirement and blocks transformation b

[PATCH] x86: Convert CONST_WIDE_INT to broadcast in move expanders

2021-06-02 Thread H.J. Lu via Gcc-patches
Update move expanders to convert the CONST_WIDE_INT operand to vector broadcast from a byte with AVX2. Add ix86_gen_scratch_sse_rtx to return a scratch SSE register which won't increase stack alignment requirement and blocks transformation by the combine pass. A small benchmark: https://gitlab.c