From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 12053386F432; Mon, 18 Jan 2021 14:00:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 12053386F432 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/97494] [11 regression] several vector test case failures starting with r11-3966 Date: Mon, 18 Jan 2021 14:00:51 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 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: Mon, 18 Jan 2021 14:00:52 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97494 --- Comment #4 from Richard Biener --- OK, so for gcc.dg/vect/slp-11b.c we're now doing hybrid vectorization if a = { 0 2 1 } load permute is supported. The reason this is needed is that out[i*4] =3D (in[i*4] + 2) * 3; out[i*4 + 1] =3D (in[i*4 + 2] + 2) * 7; out[i*4 + 2] =3D (in[i*4 + 1] + 7) * 3; out[i*4 + 3] =3D (in[i*4 + 3] + 3) * 4; is "inconsistently" folded like out[i*4] =3D (in[i*4] * 3 + 6); out[i*4 + 1] =3D (in[i*4 + 2] * 7 + 14); out[i*4 + 2] =3D (in[i*4 + 1] * 3 + 21); out[i*4 + 3] =3D (in[i*4 + 3] + 3) * 4; so for (x + 3) * 4 we're _not_ associating. That breaks SLP discovery but with splitting we're now using SLP for the first three lane and interleaving for the last.=