From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0832F384A424; Fri, 6 Sep 2024 21:36:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0832F384A424 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1725658584; bh=6mdpkvO6ZaKVcSrNqGh0cL4NKGcktXoGG9gxAEzXXxg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=r0pMZfPcKffqb9u+O6XQ/nEKubV+174i9WsbP/2BvZFof+5W0AF4xrprUp8XNfmE3 F/lkshw++4BjOQnqNmzmybWQYQfsJkIU5IvXsWYFoa7NJNfjpTIckUUuZmcCS3mxju VeHcZzWsBsAhkIy78YA6WSCU838/QUIFZxmSnzOA= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/116601] [12/13/14/15 Regression] during GIMPLE pass: fab ICE: verify_gimple failed: statement marked for throw, but doesn't with -O -fnon-call-exceptions Date: Fri, 06 Sep 2024 21:36:23 +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: 15.0 X-Bugzilla-Keywords: ice-on-valid-code, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pinskia at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.5 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=3D116601 --- Comment #6 from Andrew Pinski --- Created attachment 59065 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D59065&action=3Dedit Patch which moves this folding to a different location So in the end, it is better to move this optimization to fold_stmt. For branches my original patch seems like the best.=