From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E91863858CDA; Tue, 5 Mar 2024 14:23:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E91863858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709648580; bh=1pEwxOPjdgHD/mV1VO3U1GeXzTioolOfI9P6gxD4aMg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=x1w4PxZB3pNzii9idJgkm8SFgjZNYFSutFRmBBUWPbkC6AuqHF/eHEs8csAwwJ+Aw dz2sGLo07YAFtLvD5KRsoTZL5lfYLgQip+0sBDRoUkUJELENTw+QPiRNt9D5h5pJjC gw/S4qjfu0Y4SBTz15k1SM/w23hAhi61YUy+AE8Q= From: "tnfchris at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/114234] [14 Regression] verify_ssa failure with early-break vectorisation Date: Tue, 05 Mar 2024 14:23:00 +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: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on bug_status everconfirmed 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=3D114234 Tamar Christina changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2024-03-05 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #3 from Tamar Christina --- started with commit g:324d2907c86f05e40dc52d226940308f53a956c2 Author: Richard Biener Date: Mon Mar 4 09:46:13 2024 +0100 tree-optimization/114192 - scalar reduction kept live with early break = vect The following fixes a missing replacement of the reduction value used in the epilog, causing the scalar reduction to be kept live across the early break exit path. PR tree-optimization/114192 * tree-vect-loop.cc (vect_create_epilog_for_reduction): Use the appropriate def for the live out stmt in case of an alternate exit. the reduction seems to propagate out a single value for both exits: # a_39 =3D PHI but since the PHI nodes carry their reduction values in the exits we have different reduction statements, so using the same reduction value for all e= xit is wrong. should be # a_39 =3D PHI =