Re: [PATCH] constructor: Elide expand_constructor when can move by pieces is true

2021-05-21 Thread H.J. Lu via Gcc-patches
On Fri, May 21, 2021 at 12:30 AM Bernd Edlinger wrote: > > > > On 5/21/21 8:57 AM, Richard Biener wrote: > > On Thu, May 20, 2021 at 4:04 PM H.J. Lu wrote: > >> > >> On Thu, May 20, 2021 at 12:51 AM Richard Biener > >> wrote: > >>> > >>> On Wed, May 19, 2021 at 3:22 PM H.J. Lu wrote: > > >

Re: [PATCH] constructor: Elide expand_constructor when can move by pieces is true

2021-05-21 Thread Bernd Edlinger
On 5/21/21 8:57 AM, Richard Biener wrote: > On Thu, May 20, 2021 at 4:04 PM H.J. Lu wrote: >> >> On Thu, May 20, 2021 at 12:51 AM Richard Biener >> wrote: >>> >>> 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: > > O

Re: [PATCH] constructor: Elide expand_constructor when can move by pieces is true

2021-05-20 Thread Richard Biener via Gcc-patches
On Thu, May 20, 2021 at 4:04 PM H.J. Lu wrote: > > On Thu, May 20, 2021 at 12:51 AM Richard Biener > wrote: > > > > 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 wro

Re: [PATCH] constructor: Elide expand_constructor when can move by pieces is true

2021-05-20 Thread Bernd Edlinger
On 5/20/21 4:03 PM, H.J. Lu wrote: > On Thu, May 20, 2021 at 12:51 AM Richard Biener > wrote: >> >> 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 expandin

[PATCH] constructor: Elide expand_constructor when can move by pieces is true

2021-05-20 Thread H.J. Lu via Gcc-patches
avoid_temp_mem?). > > That said, I wonder if we want to elide expand_constructor when the > CTOR is TREE_STATIC && TREE_CONSTANT and !mostly_zeros_p > and we can_move_by_pieces. > > So sth like > > diff --git a/gcc/expr.c b/gcc/expr.c > index 7139545d543..76b3bdf0c01 100644 >