https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108880

--- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
We generate HUGE trees for the div sanitization, but I notice that
c_genericize_control_r doesn't use pset, like cp_genericize_r does.  So I think
the fix would be to add a hash_set to c_genericize_control_r.

Indeed, if I remove p_set->add (*stmt_p); in cp_genericize_r, the compilation
with cc1plus also takes around 10s.

Reply via email to