From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A756C3858C36; Tue, 2 Apr 2024 13:28:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A756C3858C36 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712064491; bh=Pecmx4vOl5zVw7kr5fXg0c92g+oEqFNeaHxQGSzeaC0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WN+w2/K+RAZcWBB1gk1PY/B2k30qPioNEX2W68KKD2rRS4WREV2D4RKTevx3FiAaJ Xdcgy+EOSz+ybfiENT8oQgx8ZSSlohnuIbFQWSELNoVKb3wjmOc7DOFGtPl4L//k28 wUb5GB2S1bVxGFe0V1P2dZC/f1kJNBY3Z1E3oun0= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114480] g++: internal compiler error: Segmentation fault signal terminated program cc1plus Date: Tue, 02 Apr 2024 13:28:10 +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: 11.4.0 X-Bugzilla-Keywords: compile-time-hog, memory-hog, ra X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED 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: attachments.created 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=3D114480 --- Comment #16 from Richard Biener --- Created attachment 57849 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57849&action=3Dedit patch for expand Interestingly this patch for RTL expansion, more specifically add_scope_conflicts, only slows down things even though it should improve cache locality. In particular doing the 2nd stage inbetween makes things worse. Maybe this is due to the high in-degree of some blocks in the CFG. I'll note there's no "change" in the 2nd iteration for SCCs, so optimizing to only IOR in from (changed) backedges might "work" to reduce work. Still it's odd the apparent locality improvement doesn't actually help (as said it might be skewed by a high indegree of an SCC).=