From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A59313858039; Wed, 22 Feb 2023 18:24:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A59313858039 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677090285; bh=bQ90zPMPnMCkTe1gQ6+hgubcQ43iWDKVfKGLcKa2bN4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XSMKuYbZtTEEnP7Xs90aTGE3b8koH/DqGs3StsjH95HfW4Oj5gHkpbRcWXvSXWCV6 7BDHI4hLvKpTFJ1SDAR6XO6ivPCJ0caZ8UQ2Xf2HPvZxO6LTzynI3QeDni/lERFql1 xWtPlHIlWSVxaRkOtFJLOYRB1PdUxISzgjBCY5PY= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/108880] [11/12/13 Regression] slow compilation with "-fsanitize=undefined" Date: Wed, 22 Feb 2023 18:24:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: compile-time-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108880 --- Comment #8 from Marek Polacek --- 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 t= hink 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 compilati= on with cc1plus also takes around 10s.=