From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AAEBC3853D27; Fri, 30 Jun 2023 08:38:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AAEBC3853D27 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688114310; bh=jyWM0FI4WLV2UgRm/PW4pk93qj/VyJp2eEEX8QF0VeY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=eQC5aetC7E0eCj5U1sQuVVlRF5buxdz9rbgGsZ/R+KWlvE/wKCjPTg45BtUz2wmfr 30HD/r+7GChI0YmIUs8Py/66gyejvE9yaKIMqaoPCh0JUxhNG+GuMhugb8b5VOcbWj MLGS7XsLw485KAs4oVSgvvhS82OFRZMlmC97YoEs= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/110489] Slow building virtual.c.i from p11-kit Date: Fri, 30 Jun 2023 08:38:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: compile-time-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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=3D110489 --- Comment #5 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:18e5aeaef294428fc8458c2c70a9ac3a537c35d6 commit r14-2209-g18e5aeaef294428fc8458c2c70a9ac3a537c35d6 Author: Richard Biener Date: Fri Jun 30 09:46:48 2023 +0200 middle-end/110489 - avoid useless work on statistics When we call statistics_fini_pass we unconditionally allocate the statistics hash and traverse it. When a TU has many small functions this can take considerable time. The following avoids this by never allocating the hash from this function. PR middle-end/110489 * statistics.cc (curr_statistics_hash): Add argument indicating whether we should allocate the hash. (statistics_fini_pass): If the hash isn't allocated only print the summary header.=