From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 08F58386102B; Tue, 7 Jul 2020 11:01:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 08F58386102B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1594119718; bh=mxTONK4S/WIdLiz5AdkhpZeURpn9mnuF0OLcYp+W2FE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tjvl32XnFlkRF3C4nlMOMt6kBpkgzLPgLKVr3mwrcBw+x0yrczWFGZdlPuP9Prben Yt0EIp2QFpgph5LxiYiLZSk7o1XaChRrbgHvN87YEogZYD44DHNG8ct7TJHV6ZrIVB +JaZGJmRg29crHrX+5BY9L0JJq9AYD58uej35mQ4= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/96075] [8/9/10 Regression] bogus alignment for negative step grouped access Date: Tue, 07 Jul 2020 11:01:57 +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: 11.0 X-Bugzilla-Keywords: needs-bisection 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: 8.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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jul 2020 11:01:58 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96075 --- Comment #9 from CVS Commits --- The releases/gcc-10 branch has been updated by Richard Biener : https://gcc.gnu.org/g:7d535ca86a548b76384f3687e1d46677cb652bdb commit r10-8433-g7d535ca86a548b76384f3687e1d46677cb652bdb Author: Richard Biener Date: Mon Jul 6 16:26:50 2020 +0200 tree-optimization/96075 - fix bogus misalignment calculation This fixes bogus misalignment calculation for negative steps since an assertion a previous comment indicated no longer holds: /* DR_STEP(dr) is the same as -TYPE_SIZE of the scalar type, otherwise we wouldn't be here. */ Thus the following replaces DR_STEP by -TYPE_SIZE. 2020-07-06 Richard Biener PR tree-optimization/96075 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use TYPE_SIZE_UNIT of the vector component type instead of DR_STEP for the misalignment calculation for negative step. * gcc.dg/vect/slp-46.c: New testcase. (cherry picked from commit dccbf1e2a6e544f71b4a5795f0c79015db019fc3)=