On 1/27/25 4:17 PM, Patrick Palka wrote:
On Mon, 27 Jan 2025, Patrick Palka wrote:

Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look
OK for trunk/14?

OK.

+    && (cxx_dialect < cxx23 || !deduction_guide_p (NODE)))  \

N.B. I decided to check cxx_dialect here since deduction_guide_p seems
relatively expensive to call?  In another version of this patch I made
us track dguide-ness via a dedicated bit flag instead of the DECL_NAME
comparison to make the predicate essentially free (and potentially also
more robust) but I eventually shelved that as more stage 1 material.

deduction_guide_p doesn't look like a significant expense to me; I wouldn't bother trying to optimize it without profile data as evidence.

Jason

Reply via email to