Re: [PATCH] c++: decl_constant_value and unsharing [PR96197]

2020-07-31 Thread Jason Merrill via Gcc-patches
On 7/31/20 2:07 AM, Richard Biener wrote: On Thu, Jul 30, 2020 at 8:55 PM Patrick Palka via Gcc-patches wrote: On Thu, 30 Jul 2020, Jason Merrill wrote: On 7/30/20 9:49 AM, Patrick Palka wrote: On Thu, 30 Jul 2020, Jason Merrill wrote: On 7/21/20 3:07 PM, Patrick Palka wrote: In the test

Re: [PATCH] c++: decl_constant_value and unsharing [PR96197]

2020-07-30 Thread Richard Biener via Gcc-patches
On Thu, Jul 30, 2020 at 8:55 PM Patrick Palka via Gcc-patches wrote: > > On Thu, 30 Jul 2020, Jason Merrill wrote: > > > On 7/30/20 9:49 AM, Patrick Palka wrote: > > > On Thu, 30 Jul 2020, Jason Merrill wrote: > > > > > > > On 7/21/20 3:07 PM, Patrick Palka wrote: > > > > > In the testcase from th

Re: [PATCH] c++: decl_constant_value and unsharing [PR96197]

2020-07-30 Thread Patrick Palka via Gcc-patches
On Thu, 30 Jul 2020, Jason Merrill wrote: > On 7/30/20 9:49 AM, Patrick Palka wrote: > > On Thu, 30 Jul 2020, Jason Merrill wrote: > > > > > On 7/21/20 3:07 PM, Patrick Palka wrote: > > > > In the testcase from the PR we are seeing excessive memory use (> 5GB) > > > > during constexpr evaluation,

Re: [PATCH] c++: decl_constant_value and unsharing [PR96197]

2020-07-30 Thread Jason Merrill via Gcc-patches
On 7/30/20 9:49 AM, Patrick Palka wrote: On Thu, 30 Jul 2020, Jason Merrill wrote: On 7/21/20 3:07 PM, Patrick Palka wrote: In the testcase from the PR we are seeing excessive memory use (> 5GB) during constexpr evaluation, almost all of which is due to the call to decl_constant_value in the V

Re: [PATCH] c++: decl_constant_value and unsharing [PR96197]

2020-07-30 Thread Patrick Palka via Gcc-patches
On Thu, 30 Jul 2020, Jason Merrill wrote: > On 7/21/20 3:07 PM, Patrick Palka wrote: > > In the testcase from the PR we are seeing excessive memory use (> 5GB) > > during constexpr evaluation, almost all of which is due to the call to > > decl_constant_value in the VAR_DECL/CONST_DECL branch of >

Re: [PATCH] c++: decl_constant_value and unsharing [PR96197]

2020-07-29 Thread Jason Merrill via Gcc-patches
On 7/21/20 3:07 PM, Patrick Palka wrote: In the testcase from the PR we are seeing excessive memory use (> 5GB) during constexpr evaluation, almost all of which is due to the call to decl_constant_value in the VAR_DECL/CONST_DECL branch of cxx_eval_constant_expression. We reach here every time w

Re: [PATCH] c++: decl_constant_value and unsharing [PR96197]

2020-07-22 Thread Patrick Palka via Gcc-patches
On Wed, 22 Jul 2020, Richard Biener wrote: > On Tue, Jul 21, 2020 at 9:08 PM Patrick Palka via Gcc-patches > wrote: > > > > In the testcase from the PR we are seeing excessive memory use (> 5GB) > > during constexpr evaluation, almost all of which is due to the call to > > decl_constant_value in

Re: [PATCH] c++: decl_constant_value and unsharing [PR96197]

2020-07-21 Thread Richard Biener via Gcc-patches
On Tue, Jul 21, 2020 at 9:08 PM Patrick Palka via Gcc-patches wrote: > > In the testcase from the PR we are seeing excessive memory use (> 5GB) > during constexpr evaluation, almost all of which is due to the call to > decl_constant_value in the VAR_DECL/CONST_DECL branch of > cxx_eval_constant_ex