Re: [PATCH v6 1/2] x86: Convert CONST_WIDE_INT/CONST_VECTOR to broadcast

2021-07-01 Thread Uros Bizjak via Gcc-patches
On Thu, Jul 1, 2021 at 2:42 PM H.J. Lu wrote: > > Hi Uros, > > On Thu, Jul 1, 2021 at 1:32 AM Hongtao Liu wrote: > > > > On Tue, Jun 29, 2021 at 6:16 AM H.J. Lu wrote: > > > > > > 1. Update move expanders to convert the CONST_WIDE_INT and CONST_VECTOR > > > operands to vector broadcast from an

Re: [PATCH v6 1/2] x86: Convert CONST_WIDE_INT/CONST_VECTOR to broadcast

2021-07-01 Thread H.J. Lu via Gcc-patches
Hi Uros, On Thu, Jul 1, 2021 at 1:32 AM Hongtao Liu wrote: > > On Tue, Jun 29, 2021 at 6:16 AM H.J. Lu wrote: > > > > 1. Update move expanders to convert the CONST_WIDE_INT and CONST_VECTOR > > operands to vector broadcast from an integer with AVX. > > 2. Add ix86_gen_scratch_sse_rtx to return

Re: [PATCH v6 1/2] x86: Convert CONST_WIDE_INT/CONST_VECTOR to broadcast

2021-07-01 Thread Hongtao Liu via Gcc-patches
On Tue, Jun 29, 2021 at 6:16 AM H.J. Lu wrote: > > 1. Update move expanders to convert the CONST_WIDE_INT and CONST_VECTOR > operands to vector broadcast from an integer with AVX. > 2. Add ix86_gen_scratch_sse_rtx to return a scratch SSE register which > won't increase stack alignment requirement

[PATCH v6 1/2] x86: Convert CONST_WIDE_INT/CONST_VECTOR to broadcast

2021-06-28 Thread H.J. Lu via Gcc-patches
1. Update move expanders to convert the CONST_WIDE_INT and CONST_VECTOR operands to vector broadcast from an integer with AVX. 2. 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