Re: [PATCH][C++] Fix PR90801

2019-06-12 Thread Jason Merrill
On 6/12/19 7:07 AM, Richard Biener wrote: On Tue, 11 Jun 2019, Jason Merrill wrote: On Tue, Jun 11, 2019, 6:45 AM Richard Biener wrote: The following fixes the documented(!) quadraticness in split_nonconstant_init_1 by simply marking to be removed constructor elements and doing that in a se

Re: [PATCH][C++] Fix PR90801

2019-06-12 Thread Richard Biener
On Tue, 11 Jun 2019, Jason Merrill wrote: > On Tue, Jun 11, 2019, 6:45 AM Richard Biener wrote: > > > > > The following fixes the documented(!) quadraticness in > > split_nonconstant_init_1 by simply marking to be removed > > constructor elements and doing that in a second run over > > the const

Re: [PATCH][C++] Fix PR90801

2019-06-11 Thread Jason Merrill
On Tue, Jun 11, 2019, 6:45 AM Richard Biener wrote: > > The following fixes the documented(!) quadraticness in > split_nonconstant_init_1 by simply marking to be removed > constructor elements and doing that in a second run over > the constructor. > > More micro-optimizing would be possible by re

[PATCH][C++] Fix PR90801

2019-06-11 Thread Richard Biener
The following fixes the documented(!) quadraticness in split_nonconstant_init_1 by simply marking to be removed constructor elements and doing that in a second run over the constructor. More micro-optimizing would be possible by recording the first removed element index and special-casing removi