[PATCH][C++] Save memory/time when folding CONSTRUCTORs
Nathan Sidwell
nathan@acm.org
Wed Feb 1 15:24:00 GMT 2017
On 02/01/2017 10:18 AM, Richard Biener wrote:
> True. Updated patch below.
>
> Richard.
>
> 2017-02-01 Richard Biener <rguenther@suse.de>
>
> PR cp/14179
> cp/
> * cp-gimplify.c (cp_fold): When folding a CONSTRUCTOR copy
> it lazily on the first changed element only and copy it
> fully upfront, only storing changed elements.
Looks good, with the tweak Jakub noticed.
nathan
--
Nathan Sidwell
More information about the Gcc-patches
mailing list