Re: [PATCH v4 12/12] constructor: Check if it is faster to load constant from memory

2021-05-20 Thread Richard Biener via Gcc-patches
On Wed, May 19, 2021 at 3:22 PM H.J. Lu wrote: > > On Wed, May 19, 2021 at 2:33 AM Richard Biener > wrote: > > > > On Tue, May 18, 2021 at 9:16 PM H.J. Lu wrote: > > > > > > When expanding a constant constructor, don't call expand_constructor if > > > it is more efficient to load the data from t

Re: [PATCH v4 12/12] constructor: Check if it is faster to load constant from memory

2021-05-19 Thread Richard Biener via Gcc-patches
On Wed, May 19, 2021 at 9:05 PM H.J. Lu wrote: > > On Wed, May 19, 2021 at 6:27 AM Bernd Edlinger > wrote: > > > > On 5/19/21 3:22 PM, H.J. Lu wrote: > > > On Wed, May 19, 2021 at 2:33 AM Richard Biener > > > wrote: > > >> > > >> On Tue, May 18, 2021 at 9:16 PM H.J. Lu wrote: > > >>> > > >>> Wh

Re: [PATCH v4 12/12] constructor: Check if it is faster to load constant from memory

2021-05-19 Thread H.J. Lu via Gcc-patches
On Wed, May 19, 2021 at 6:27 AM Bernd Edlinger wrote: > > On 5/19/21 3:22 PM, H.J. Lu wrote: > > On Wed, May 19, 2021 at 2:33 AM Richard Biener > > wrote: > >> > >> On Tue, May 18, 2021 at 9:16 PM H.J. Lu wrote: > >>> > >>> When expanding a constant constructor, don't call expand_constructor if

Re: [PATCH v4 12/12] constructor: Check if it is faster to load constant from memory

2021-05-19 Thread Bernd Edlinger
On 5/19/21 3:22 PM, H.J. Lu wrote: > On Wed, May 19, 2021 at 2:33 AM Richard Biener > wrote: >> >> On Tue, May 18, 2021 at 9:16 PM H.J. Lu wrote: >>> >>> When expanding a constant constructor, don't call expand_constructor if >>> it is more efficient to load the data from the memory via move by p

Re: [PATCH v4 12/12] constructor: Check if it is faster to load constant from memory

2021-05-19 Thread H.J. Lu via Gcc-patches
On Wed, May 19, 2021 at 2:33 AM Richard Biener wrote: > > On Tue, May 18, 2021 at 9:16 PM H.J. Lu wrote: > > > > When expanding a constant constructor, don't call expand_constructor if > > it is more efficient to load the data from the memory via move by pieces. > > > > gcc/ > > > > PR mi

Re: [PATCH v4 12/12] constructor: Check if it is faster to load constant from memory

2021-05-19 Thread Richard Biener via Gcc-patches
On Tue, May 18, 2021 at 9:16 PM H.J. Lu wrote: > > When expanding a constant constructor, don't call expand_constructor if > it is more efficient to load the data from the memory via move by pieces. > > gcc/ > > PR middle-end/90773 > * expr.c (expand_expr_real_1): Don't call expand

[PATCH v4 12/12] constructor: Check if it is faster to load constant from memory

2021-05-18 Thread H.J. Lu via Gcc-patches
When expanding a constant constructor, don't call expand_constructor if it is more efficient to load the data from the memory via move by pieces. gcc/ PR middle-end/90773 * expr.c (expand_expr_real_1): Don't call expand_constructor if it is more efficient to load the data