Re: (patch] Do not put incomplete CONSTRUCTORs into static memory

2020-05-05 Thread Richard Biener via Gcc-patches
On Tue, May 5, 2020 at 10:30 AM Eric Botcazou wrote: > > Hi, > > the CONSTRUCTOR_NO_CLEARING flag was invented to avoid generating a memset for > CONSTRUCTORS that lack elements, but it turns out that the gimplifier can > generate a memcpy for them instead, which is even worse performance-wise, so

(patch] Do not put incomplete CONSTRUCTORs into static memory

2020-05-05 Thread Eric Botcazou
Hi, the CONSTRUCTOR_NO_CLEARING flag was invented to avoid generating a memset for CONSTRUCTORS that lack elements, but it turns out that the gimplifier can generate a memcpy for them instead, which is even worse performance-wise, so this prevents it from doing that for them. Tested on x86-64/