On Fri, 9 Feb 2018, Jason Merrill wrote:
> OK.
Failed to notice that vec_safe_reserve reserves additional space
so applied as follows restricting it to the very first iteration.
Richard.
2018-02-12 Richard Biener
PR c++/84281
* constexpr.c (cxx_eval_vec_init_1): Use a RANGE_
OK.
On Fri, Feb 9, 2018 at 7:44 AM, Richard Biener wrote:
>
> The following patch optimizes the equal element case of
> cxx_eval_vec_init_1 to use a RANGE_EXPR in the built CONSTRUCTOR
> instead of repeating the same element over and over. This
> cuts down memory use of the invalid testcase in t