From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 56B60385C6EE; Mon, 27 Nov 2023 13:10:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 56B60385C6EE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701090605; bh=YvMcaAlvJ0/FG9eM2CVqXdoaUzvymhFk1M4lfm0XLks=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Zzr51FcYpZ25zpB19MSFMXJXalKr0eSBl26JjHPw2x3/z85N8whV3RsHA+Wfzf2zi LAVUo0vBwvYKTWPjEtspHeZ0DKNCj5H0TyQ/pKu82p1LGd2Xzz9GqiThT0sNlHWZKX B8w9D7bbhAja6PN8cb8ylDercVl/oSWBKg/fRPCo= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111917] [11/12 Regression] ICE in as_a, at is-a.h:255 since GCC-7 Date: Mon, 27 Nov 2023 13:10:04 +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: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 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=3D111917 --- Comment #10 from GCC Commits --- The releases/gcc-12 branch has been updated by Richard Biener : https://gcc.gnu.org/g:bbd68241f7277850ba9f97c3d26c968f365f5479 commit r12-10015-gbbd68241f7277850ba9f97c3d26c968f365f5479 Author: Richard Biener Date: Mon Oct 23 11:25:17 2023 +0200 tree-optimization/111917 - bougs IL after guard hoisting The unswitching code to hoist guards inserts conditions in wrong places. The following fixes this, simplifying code. PR tree-optimization/111917 * tree-ssa-loop-unswitch.cc (hoist_guard): Always insert new conditional after last stmt. * gcc.dg/torture/pr111917.c: New testcase. (cherry picked from commit d96bd4aade170fcd86f5f09b68b770dde798e631)=