Re: [PATCH] c++: improve constexpr call caching [PR115639]

2025-04-12 Thread Jason Merrill
On 4/12/25 12:20 PM, Patrick Palka wrote: On Sat, 12 Apr 2025, Jason Merrill wrote: On 4/11/25 4:36 PM, Patrick Palka wrote: Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for GCC 15 perhaps? -- >8 -- Here checking static_assert(0 == big_calc()); takes twice as mu

Re: [PATCH] c++: improve constexpr call caching [PR115639]

2025-04-12 Thread Patrick Palka
On Sat, 12 Apr 2025, Jason Merrill wrote: > On 4/11/25 4:36 PM, Patrick Palka wrote: > > Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for > > GCC 15 perhaps? > > > > -- >8 -- > > > > Here checking > > > >static_assert(0 == big_calc()); > > > > takes twice as much ti

Re: [PATCH] c++: improve constexpr call caching [PR115639]

2025-04-12 Thread Jason Merrill
On 4/11/25 4:36 PM, Patrick Palka wrote: Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for GCC 15 perhaps? -- >8 -- Here checking static_assert(0 == big_calc()); takes twice as much time as constexpr int ret = big_calc(); static_assert(0 == ret); ultimately b

[PATCH] c++: improve constexpr call caching [PR115639]

2025-04-11 Thread Patrick Palka
Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for GCC 15 perhaps? -- >8 -- Here checking static_assert(0 == big_calc()); takes twice as much time as constexpr int ret = big_calc(); static_assert(0 == ret); ultimately because in the former, we first constexpr evalu