From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 90EB1385DC22; Fri, 30 Jun 2023 08:37:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 90EB1385DC22 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688114243; bh=eCMUonDaDx37JJ/OwMDdc7iJYTLRzsKSKTbccZiabHY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KdZw617H0Rfwslrj/Lkzb6yPFqHIClmbfXT0kZVWCQVWUCOBvmTwBniCeztSgr3ob RGe7+QzJRtQSQUVpt0u9Owoy9GSvj4TTRQKtR5zRTLkwKAmg9hWFQiaAyKe3/8x+8B jdGpdvIbMRKGExdUepP8iFyz6Eve3AgwkBcE+BEU= From: "rguenth 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:37:21 +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: rguenth 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 #4 from Richard Biener --- There would possibly be opportunity to optimize some of our infrastructure = for the case where we have 3 basic blocks (the minimum, ENTRY, bb2 and EXIT). = For example dominance compute doesn't need to be "computed", the only special c= ase to consider is that EXIT is not reachable. The testcase at hand seems to consist of forwarders. In general single-BB functions can be quite common in C++ code as well. A lot of passes could excuse themselves as well (next special case is BB2 having a backedge to itself). There is quite some constant overhead all over the pl= ace even when we do nothing in the end.=