From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 387543858D28; Tue, 31 Oct 2023 11:09:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 387543858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698750560; bh=1GKfmV8WhpJiLsPZk7nh0CjLtua3jhLUYcK9SBbms4c=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wtI5KWzIY8/6+TpQ0aZdFLsyymU3u5I9gNoBYhvMH366gn477+uBnh/ieT2Po7hhO sunkFfnq9VqXtUtHcxs7fzQExR6sN2lPOf0xAjc9tSNQEXAKOOFHZVX84zpYVcU68n 1yxjJARgpjBlWdx2U7Q+sDmUrfWosbgFTAlE6Kts= From: "tnfchris at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111878] [14 Regression] ICE: in get_loop_exit_edges, at cfgloop.cc:1204 with -O3 -fgraphite-identity -fsave-optimization-record/-fdump-tree-graphite/-fopt-info since r14-4708-gd65e38e616e7ac Date: Tue, 31 Oct 2023 11:09:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tnfchris at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: tnfchris at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to 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=3D111878 Tamar Christina changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |tnfchris at gcc dot= gnu.org --- Comment #7 from Tamar Christina --- Thanks for the report. Graphite is feeding it a junk loop. The loop's latch block is invalid. In = fact the block isn't even part of the loop. Since the loop structure Graphite passes it is broken, get_loop_exit_edges = (..) asserts. Previously for this situation the call would silently return NULL for such loops. I'd argue this is a bug in Graphite, but will restore the return NULL for broken loops.=