From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 124AF3858CDB; Tue, 2 Apr 2024 08:59:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 124AF3858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712048366; bh=IdgE3Pu/tZtDIUtnIeMRIuJRCdgCgRr7mlfEZjvShbQ=; h=From:To:Subject:Date:From; b=js+VsPpfRoUQX2ebMj0w0ucZmph+IMZJBM2LhTC41y7Mrem1bBt7p3S9SeCukYIHC MrOJUCHt1ST9HlabNelU4CBjJPaSJ3jnr+LF/Z9m8vN1mvkW/muSvDvHClE7my7o8e b6BO58bM3qXrcnpysSJWd1AmyOrnV2Kbo66Cx2p0= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/114557] New: ehcleanup cleanup_empty_eh_merge_phis eats a lot of memory Date: Tue, 02 Apr 2024 08:59:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D114557 Bug ID: 114557 Summary: ehcleanup cleanup_empty_eh_merge_phis eats a lot of memory Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org Target Milestone: --- For the testcase in PR114480 we end up redirecting a lot of edges into very high in-degree blocks. (gdb) p new_bb->preds.m_vecpfx $3 =3D {m_alloc =3D 4095, m_using_auto_storage =3D 0, m_num =3D 3911} the way the edge redirection works it will resize the target PHI nodes a lot of time, leaving the old PHIs as garbage until the next GC collection. For the testcase this piles up to 16GB of garbage.=