From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0A3DA3858283; Wed, 18 Sep 2024 09:31:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0A3DA3858283 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1726651878; bh=1DtB1ZrGcFwTYEEIDowrN6o3Buyh0/Nbv86ywqhTDNM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=m7jOzc3BLZ1N5BSkseoxONku9SONFBml/5/7RU7kwL2YCGBaPW6fpZvzHkVBTiomf v0l9f0eAK/X2FEBFXJt9P89me24gkm3c7b31cIPq2KWWOgSwRw5XxA3AMUhic94omT f9huGIr7jSbdMi02cOHLXqHnNajSit/7w9DAdUac= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/116610] wrong-code with SLP induction vectorization when using partial vectors and alignment peeling via masking Date: Wed, 18 Sep 2024 09:31:17 +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: wrong-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: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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=3D116610 --- Comment #5 from GCC Commits --- The releases/gcc-14 branch has been updated by Richard Biener : https://gcc.gnu.org/g:cacc976a71027e7da8e3438b60da76ecdf990d38 commit r14-10684-gcacc976a71027e7da8e3438b60da76ecdf990d38 Author: Richard Biener Date: Thu Sep 5 11:18:57 2024 +0200 tree-optimization/116610 - wrong SLP induction bias for mask peeling The following fixes a mistake when applying the bias for peeling via masking to the inital value of SLP inductions. This resolves gcc.target/aarch64/sve/peel_ind_1.c (a scan-assembler only unfortunately) when forcing single-lane SLP for it. PR tree-optimization/116610 * tree-vect-loop.cc (vectorizable_induction): Use MINUS_EXPR to apply a mask peeling adjustment. (cherry picked from commit 6a1a856ba78589f7f5285b00ecd40ba2bbeef8b0)=