From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 84F193850849; Wed, 15 Mar 2023 09:48:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 84F193850849 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678873694; bh=1Ch1E+KSI3qyrVSyFmHwEQVT7q98Ft1NCnibWig//ZQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gDT+2DUWqxrpvHHuPG/mg2Auj+Y3+gyDMv+1RNG3qqLaLKRWKyNX+f+kv0b8Xlf94 rWcqvi+FWkOUhQpOXYfAFxuDIixpkpSJ7RJJkuNIvG9CjMONAzWCeHoZqwBs8AMVNd Lbhw5+qTS+6+RbMXpp8mKlocYIpm0OKRtBGlyhJ8= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108816] [12 Regression] ICE in operator[], at vec.h:889 Date: Wed, 15 Mar 2023 09:48:14 +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: 13.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: 12.3 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=3D108816 --- Comment #5 from CVS Commits --- The releases/gcc-12 branch has been updated by Richard Biener : https://gcc.gnu.org/g:02ff8c8ebcb7f9b0885946d17ff12523e7522b71 commit r12-9260-g02ff8c8ebcb7f9b0885946d17ff12523e7522b71 Author: Richard Biener Date: Mon Feb 20 10:59:15 2023 +0100 tree-optimization/108816 - vect versioning check split confusion The split of the versioning condition assumes the definition is in the condition block which is ensured by the versioning code. But that only works when we actually have to insert any statements for the versioning condition. The following adjusts the guard accordingly and asserts this condition. PR tree-optimization/108816 * tree-vect-loop-manip.cc (vect_loop_versioning): Adjust versioning condition split prerequesite, assert required invariant. * gcc.dg/torture/pr108816.c: New testcase. (cherry picked from commit 63471c5008819bbf6ec32a6f4d8701fe57b96fa9)=