From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EDCED3881D3B; Fri, 15 Dec 2023 12:18:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EDCED3881D3B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1702642714; bh=mbQukWUyb9TwWYcwIsDg8g/nM2oS4p3yzxb6oz0U5QU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IFcylsFT3BA16AI6g/Se0WffmmofrtKhN9ZJJViPvKYUjjDblJEewEIJlgrqd0qiF 7CCmdscLi6bYQiUokhPv8ySx9pEtbI9qfT5RN/c6FG1M8WmJ/lAxxGbGT/A6tvGYJ4 GtYX5abvXcjnnmsfCc7lolM+0BI1ixxcJnPWNSDc= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111917] [11 Regression] ICE in as_a, at is-a.h:255 since GCC-7 Date: Fri, 15 Dec 2023 12:18:34 +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 #11 from GCC Commits --- The releases/gcc-11 branch has been updated by Richard Biener : https://gcc.gnu.org/g:ec8d0c33211c5e92c220483d6fe9f0a2391d2d6d commit r11-11145-gec8d0c33211c5e92c220483d6fe9f0a2391d2d6d 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.c (hoist_guard): Always insert new conditional after last stmt. * gcc.dg/torture/pr111917.c: New testcase. (cherry picked from commit d96bd4aade170fcd86f5f09b68b770dde798e631)=